Changeset 40:651237260724
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r39
|
r40
|
|
| 694 | 694 | CreateSelBG(); |
| 695 | 695 | hide(); // €Ê€Î€Ç¡¢¥Æ¥¥¹¥È¥Š¥£¥ó¥É¥Š€ÏŸÃµî |
| 696 | | int baseposx, baseposy, repposx, repposy; |
| | 696 | int baseposx, baseposy, repposx, repposy, centerx, centery; |
| 697 | 697 | int mojisize, col1, col2; |
| | 698 | config.GetParam("#SELBTN.000.CENTERING", 2, ¢erx, ¢ery); |
| 698 | 699 | config.GetParam("#SELBTN.000.BASEPOS", 2, &baseposx, &baseposy); |
| 699 | 700 | config.GetParam("#SELBTN.000.REPPOS", 2, &repposx, &repposy); |
| … |
… |
|
| 714 | 715 | if (baseposx == 0 && sel_bg_rect.width() != 0) |
| 715 | 716 | 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; |
| 716 | 721 | |
| 717 | 722 | sel_widget = parent.create_node( Rect(0, 0, parent.Width(), parent.Height()),0); |
-
|
r27
|
r40
|
|
| 775 | 775 | SetOrigParam("#CURSOR.000.SPEED", 1, 1000); // ¥Ö¥ê¥ó¥¯€¹€ë®€µ |
| 776 | 776 | |
| | 777 | SetOrigParam("#SELBTN.000.CENTERING", 2, 0, 0); |
| 777 | 778 | SetOrigParam("#SELBTN.000.BASEPOS", 2, 0, 0); // ÁªÂò»è¥Š¥£¥ó¥É¥Š€Î°ÌÃÖ |
| 778 | 779 | SetOrigParam("#SELBTN.000.REPPOS", 2, 0, 50); // ÁªÂò»è¥Š¥£¥ó¥É¥Š€ÎŒ¡€Î°ÌÃÖ¡ÊÁêÂÐ¡Ë |