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:
@@ -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"
|
||||
|
||||
@@ -467,6 +467,7 @@ VARF(fullbright, 0, 0, 1,
|
||||
if(noteditmode()) return;
|
||||
fullbrightlight(176);
|
||||
}
|
||||
else calclight();
|
||||
);
|
||||
|
||||
void edittag(int tag)
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user