21 TTW_WIDGET_INDUSTRIES, ///< Make Industries transparent |
21 TTW_WIDGET_INDUSTRIES, ///< Make Industries transparent |
22 TTW_WIDGET_BUILDINGS, ///< Make player buildings and structures transparent |
22 TTW_WIDGET_BUILDINGS, ///< Make player buildings and structures transparent |
23 TTW_WIDGET_BRIDGES, ///< Make bridges transparent |
23 TTW_WIDGET_BRIDGES, ///< Make bridges transparent |
24 TTW_WIDGET_STRUCTURES, ///< Make unmovable structures transparent |
24 TTW_WIDGET_STRUCTURES, ///< Make unmovable structures transparent |
25 TTW_WIDGET_CATENARY, ///< Make catenary transparent |
25 TTW_WIDGET_CATENARY, ///< Make catenary transparent |
26 TTW_WIDGET_LOADING, ///< Make loading indicators transperent |
26 TTW_WIDGET_LOADING, ///< Make loading indicators transparent |
27 TTW_WIDGET_END, ///< End of toggle buttons |
27 TTW_WIDGET_END, ///< End of toggle buttons |
28 }; |
28 }; |
29 |
29 |
30 static void TransparencyToolbWndProc(Window *w, WindowEvent *e) |
30 static void TransparencyToolbWndProc(Window *w, WindowEvent *e) |
31 { |
31 { |
64 { WWT_CLOSEBOX, RESIZE_NONE, 7, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW}, |
64 { WWT_CLOSEBOX, RESIZE_NONE, 7, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW}, |
65 { WWT_CAPTION, RESIZE_NONE, 7, 11, 206, 0, 13, STR_TRANSPARENCY_TOOLB, STR_018C_WINDOW_TITLE_DRAG_THIS}, |
65 { WWT_CAPTION, RESIZE_NONE, 7, 11, 206, 0, 13, STR_TRANSPARENCY_TOOLB, STR_018C_WINDOW_TITLE_DRAG_THIS}, |
66 {WWT_STICKYBOX, RESIZE_NONE, 7, 207, 218, 0, 13, STR_NULL, STR_STICKY_BUTTON}, |
66 {WWT_STICKYBOX, RESIZE_NONE, 7, 207, 218, 0, 13, STR_NULL, STR_STICKY_BUTTON}, |
67 |
67 |
68 /* transparency widgets: |
68 /* transparency widgets: |
69 * transparent signs, trees, houses, industries, player's buildings, bridges, unmovable structures and loading indicators */ |
69 * transparent signs, trees, houses, industries, player's buildings, bridges, unmovable structures, catenary and loading indicators */ |
70 { WWT_IMGBTN, RESIZE_NONE, 7, 0, 21, 14, 35, SPR_IMG_SIGN, STR_TRANSPARENT_SIGNS_DESC}, |
70 { WWT_IMGBTN, RESIZE_NONE, 7, 0, 21, 14, 35, SPR_IMG_SIGN, STR_TRANSPARENT_SIGNS_DESC}, |
71 { WWT_IMGBTN, RESIZE_NONE, 7, 22, 43, 14, 35, SPR_IMG_PLANTTREES, STR_TRANSPARENT_TREES_DESC}, |
71 { WWT_IMGBTN, RESIZE_NONE, 7, 22, 43, 14, 35, SPR_IMG_PLANTTREES, STR_TRANSPARENT_TREES_DESC}, |
72 { WWT_IMGBTN, RESIZE_NONE, 7, 44, 65, 14, 35, SPR_IMG_TOWN, STR_TRANSPARENT_HOUSES_DESC}, |
72 { WWT_IMGBTN, RESIZE_NONE, 7, 44, 65, 14, 35, SPR_IMG_TOWN, STR_TRANSPARENT_HOUSES_DESC}, |
73 { WWT_IMGBTN, RESIZE_NONE, 7, 66, 87, 14, 35, SPR_IMG_INDUSTRY, STR_TRANSPARENT_INDUSTRIES_DESC}, |
73 { WWT_IMGBTN, RESIZE_NONE, 7, 66, 87, 14, 35, SPR_IMG_INDUSTRY, STR_TRANSPARENT_INDUSTRIES_DESC}, |
74 { WWT_IMGBTN, RESIZE_NONE, 7, 88, 109, 14, 35, SPR_IMG_COMPANY_LIST, STR_TRANSPARENT_BUILDINGS_DESC}, |
74 { WWT_IMGBTN, RESIZE_NONE, 7, 88, 109, 14, 35, SPR_IMG_COMPANY_LIST, STR_TRANSPARENT_BUILDINGS_DESC}, |