Changeset 40:651237260724

Show
Ignore:
Timestamp:
03/18/09 17:44:49 (3 years ago)
Author:
thib
Branch:
default
convert_revision:
svn:d0a2da98-017c-47d2-8c43-22b54484806d/trunk@41
Message:
* Center button-type selects
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • scn2k/scn2k_text.cc

    r39 r40  
    694694                CreateSelBG(); 
    695695                hide(); // €Ê€Î€Ç¡¢¥Æ¥­¥¹¥È¥Š¥£¥ó¥É¥Š€ÏŸÃµî 
    696                 int baseposx, baseposy, repposx, repposy; 
     696                int baseposx, baseposy, repposx, repposy, centerx, centery; 
    697697                int mojisize, col1, col2; 
     698                config.GetParam("#SELBTN.000.CENTERING", 2, &centerx, &centery); 
    698699                config.GetParam("#SELBTN.000.BASEPOS", 2, &baseposx, &baseposy); 
    699700                config.GetParam("#SELBTN.000.REPPOS", 2, &repposx, &repposy); 
     
    714715                if (baseposx == 0 && sel_bg_rect.width() != 0) 
    715716                        baseposx = (parent.Width()-sel_bg_rect.width()) / 2; // ¥Ü¥¿¥ó°ÌÃÖ€ò¥»¥ó¥¿¥ê¥ó¥° 
     717                if (centerx) 
     718                        baseposx = (parent.Width()-sel_bg_rect.width()-sel_size*repposx) / 2; 
     719                if (centery) 
     720                        baseposy = (parent.Height()-sel_bg_rect.height()-sel_size*repposy) / 2; 
    716721 
    717722                sel_widget = parent.create_node( Rect(0, 0, parent.Width(), parent.Height()),0); 
  • system/system_config.cc

    r27 r40  
    775775        SetOrigParam("#CURSOR.000.SPEED", 1, 1000); // ¥Ö¥ê¥ó¥¯€¹€ë®€µ 
    776776 
     777        SetOrigParam("#SELBTN.000.CENTERING", 2, 0, 0); 
    777778        SetOrigParam("#SELBTN.000.BASEPOS", 2, 0, 0); // ÁªÂò»è¥Š¥£¥ó¥É¥Š€Î°ÌÃÖ 
    778779        SetOrigParam("#SELBTN.000.REPPOS", 2, 0, 50); // ÁªÂò»è¥Š¥£¥ó¥É¥Š€ÎŒ¡€Î°ÌÃÖ¡ÊÁêÂСË