本帖最后由 cabinsummer 于 2016-12-24 15:08 编辑
只贴出源码,原理详见我以前的帖子http://bbs.mjtd.com/thread-90666-1-1.html
- roughness:dialog
- {
- label="粗糙度";
- spacer;
- :row
- {
- :column
- {
- :image_button
- {
- key = "RM";
- aspect_ratio = 1;
- width = 8;
- fixed_width = true;
- color = graphics_background;
- allow_accept = true;
- }
- :image_button
- {
- key = "UN";
- aspect_ratio = 1;
- width = 8;
- fixed_width = true;
- color = graphics_background;
- allow_accept = true;
- }
- :image_button
- {
- key = "BS";
- aspect_ratio = 1;
- width = 8;
- fixed_width = true;
- color = graphics_background;
- allow_accept = true;
- }
- }
- :list_box
- {
- key="RV";
- value=8;
- width=16;
- height=14;
- allow_accept=true;
- }
- }
- :errtile
- {
- width=18;
- }
- ok_cancel;
- }
命令:rough
按a键数值增加,按s键数值减少
|