Go to the source code of this file.
Functions | |
| void | do_prefs_mouse (int, int, int) |
| void | do_prefs_screen (void) |
| void | do_network_screen (void) |
| void | close_prefs_screen (void) |
|
|
Definition at line 231 of file ldsvgui.c. 00232 {
00233 save_lincityrc();
00234
00235 prefs_flag = 0;
00236 prefs_drawn_flag = 0;
00237 #ifdef USE_EXPANDED_FONT
00238 Fgl_setwritemode (WRITEMODE_OVERWRITE | FONT_EXPANDED);
00239 #else
00240 Fgl_setfontcolors (TEXT_BG_COLOUR, TEXT_FG_COLOUR);
00241 #endif
00242 }
|
|
|
|
|
||||||||||||||||
|
Definition at line 181 of file ldsvgui.c. 00182 {
00183 Rect* mw = &scr.main_win;
00184 if (mouse_in_rect(mw, x, y)) {
00185 do_prefs_buttons (x, y);
00186 return;
00187 }
00188 /* If the user clicks outside of main window, cancel prefs?? */
00189 close_prefs_screen ();
00190 refresh_main_screen ();
00191 }
|
|
|
Definition at line 194 of file ldsvgui.c. 00195 {
00196 int x,y,w,h;
00197 Rect* mw = &scr.main_win;
00198
00199 prefs_drawn_flag = 1;
00200
00201 hide_mouse ();
00202 Fgl_fillbox (mw->x, mw->y, mw->w, mw->h, LOAD_BG_COLOUR);
00203 Fgl_setfontcolors (LOAD_BG_COLOUR, TEXT_FG_COLOUR);
00204 Fgl_write (mw->x + 80, mw->y + 4*8, _("Transport overwrite"));
00205 Fgl_write (mw->x + 80, mw->y + 6*8, _("Popup info to dialog boxes"));
00206 Fgl_write (mw->x + 80, mw->y + 8*8, _("Time multiplexed stats windows"));
00207 #if defined (LC_X11)
00208 Fgl_write (mw->x + 80, mw->y + 10*8, _("Confine X pointer"));
00209 #endif
00210
00211 x = 370;
00212 y = 387;
00213 h = 12;
00214 w = 3*8 + 4;
00215 Fgl_hline (mw->x + x, mw->y + y,
00216 mw->x + x + w, HELPBUTTON_COLOUR);
00217 Fgl_hline (mw->x + x, mw->y + y + h,
00218 mw->x + x + w, HELPBUTTON_COLOUR);
00219 Fgl_line (mw->x + x, mw->y + y,
00220 mw->x + x, mw->y + y + h, HELPBUTTON_COLOUR);
00221 Fgl_line (mw->x + x + w, mw->y + y,
00222 mw->x + x + w, mw->y + y + h, HELPBUTTON_COLOUR);
00223 Fgl_write (mw->x + x + 2, mw->y + y + 2, _("OUT"));
00224
00225 draw_prefs_cb ();
00226
00227 redraw_mouse ();
00228 }
|
1.3.9.1