fullbright fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2683 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-18 06:25:30 +00:00
parent 96f8444616
commit 3180d7641a
3 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ newmenu "lighting"
menuitem "Add white lights" [ showmenu "White light" ]
menuitem "Add coloured lights" [ showmenu "Coloured light" ]
menuitem """"
menuitemcheckbox "Enable fullbright "fullbright" [ if (= $arg1 1) [ fullbright 1 ] [ recalc ] ]
menuitemcheckbox "Enable fullbright: " "$fullbright" [ fullbright $arg1 ]
newmenu "White light"
@@ -259,4 +259,4 @@ menuitem "Broken Wood" "newent mapmodel 51"
menuitem "Coffee" "newent mapmodel 53"
menuitem "Flyer" "newent mapmodel 54"
menuitem "Tree Flyer" "newent mapmodel 26"
menuitem "Potato box" "newent mapmodel 56"
menuitem "Potato box" "newent mapmodel 56"
+1
View File
@@ -467,6 +467,7 @@ VARF(fullbright, 0, 0, 1,
if(noteditmode()) return;
fullbrightlight(176);
}
else calclight();
);
void edittag(int tag)
+1 -1
View File
@@ -417,7 +417,7 @@ struct mitemcheckbox : mitem
DELETEA(action);
}
virtual int width() { return text_width(text); }
virtual int width() { return text_width(text) + FONTH + FONTH/3; }
virtual void select()
{