Skip to content

Commit

Permalink
fixes for runtime version
Browse files Browse the repository at this point in the history
  • Loading branch information
cflavio committed Mar 27, 2017
1 parent 1d58605 commit ef6b074
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions menu/mainpage.py
Expand Up @@ -93,15 +93,15 @@ def build_page(self):
for i, wdg in enumerate(widgets):
PageGui.transl_text(wdg, menu_data[i][0], menu_data[i][1])
if not self.props.multiplayer:
widgets[-4]['state'] = DISABLED
widgets[-5]['state'] = DISABLED
_fg = menu_gui.btn_args['text_fg']
_fc = widgets[-4]['frameColor']
_fc = widgets[-5]['frameColor']
clc = lambda val: max(0, val)
fgc = (_fg[0] - .3, _fg[1] - .3, _fg[2] - .3, _fg[3])
widgets[-4]['text_fg'] = fgc
widgets[-5]['text_fg'] = fgc
fcc = (clc(_fc[0] - .3), clc(_fc[1] - .3), clc(_fc[2] - .3),
_fc[3])
widgets[-4]['frameColor'] = fcc
widgets[-5]['frameColor'] = fcc
widgets += [OnscreenImage(
self.props.title_img, scale=(.8, 1, .8 * (380.0 / 772)),
parent=base.a2dTopRight, pos=(-.8, 1, -.4))]
Expand Down
8 changes: 4 additions & 4 deletions menu/optionpage.py
Expand Up @@ -100,10 +100,10 @@ def add_lab(txt, txt_tr, z):
PageGui.transl_text(input_btn, 'Configure input', _('Configure input'))

if eng.logic.is_runtime:
fullscreen_lab['text_fg'] = menu_args.text_bg,
self.__fullscreen_cb['state'] = DISABLED
self.__res_opt['text_fg'] = menu_args.text_bg,
self.__res_opt['state'] = DISABLED
fullscreen_lab['text_fg'] = menu_args.text_bg + (1,)
self._fullscreen_cb['state'] = DISABLED
self._res_opt['text_fg'] = menu_args.text_bg + (1,)
self._res_opt['state'] = DISABLED

self.pagewidgets += [
self._lang_opt, self._vol_slider, self._fullscreen_cb,
Expand Down

0 comments on commit ef6b074

Please sign in to comment.