mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-23 23:50:40 +00:00
LunaCON: expose more members, properly handle setting ud.screen_size.
BUILD_LUNATIC. git-svn-id: https://svn.eduke32.com/eduke32@4814 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d82ca91809
commit
ca7a5acce7
5 changed files with 12 additions and 5 deletions
|
@ -557,7 +557,7 @@ local PlayerLabels = {
|
||||||
one_parallax_sectnum = DISABLED{ PL".one_parallax_sectnum" },
|
one_parallax_sectnum = DISABLED{ PL".one_parallax_sectnum" },
|
||||||
|
|
||||||
random_club_frame = PL".random_club_frame",
|
random_club_frame = PL".random_club_frame",
|
||||||
one_eighty_count = DISABLED_PL".one_eighty_count",
|
one_eighty_count = PL".one_eighty_count",
|
||||||
|
|
||||||
dummyplayersprite = DISABLED_PL".dummyplayersprite",
|
dummyplayersprite = DISABLED_PL".dummyplayersprite",
|
||||||
extra_extra8 = PL".extra_extra8",
|
extra_extra8 = PL".extra_extra8",
|
||||||
|
@ -866,12 +866,14 @@ local UserdefLabels = {
|
||||||
multimode = { "1" },
|
multimode = { "1" },
|
||||||
noexits = UDRO".noexits",
|
noexits = UDRO".noexits",
|
||||||
overhead_on = UD".overhead_on",
|
overhead_on = UD".overhead_on",
|
||||||
|
recstat = UDRO".recstat",
|
||||||
runkey_mode = UD".runkey_mode",
|
runkey_mode = UD".runkey_mode",
|
||||||
show_level_text = UD".show_level_text",
|
show_level_text = UD".show_level_text",
|
||||||
screen_size = { UD".screen_size", UD":set_screen_size(%%s)" },
|
screen_size = { UD".screen_size", UD":set_screen_size(%%s)" },
|
||||||
screen_tilting = UD".screen_tilting",
|
screen_tilting = UD".screen_tilting",
|
||||||
showallmap = UD".showallmap",
|
showallmap = UD".showallmap",
|
||||||
showweapons = UDRO".showweapons",
|
showweapons = UDRO".showweapons",
|
||||||
|
statusbarmode = UDRO".statusbarmode",
|
||||||
statusbarscale = UDRO".statusbarscale",
|
statusbarscale = UDRO".statusbarscale",
|
||||||
volume_number = { UD".volume_number", UD":set_volume_number(%%s)", {0, MAXVOLUMES} },
|
volume_number = { UD".volume_number", UD":set_volume_number(%%s)", {0, MAXVOLUMES} },
|
||||||
weaponscale = UDRO".weaponscale",
|
weaponscale = UDRO".weaponscale",
|
||||||
|
|
|
@ -712,6 +712,7 @@ vec2_t G_ScreenTextSize(const int32_t font,
|
||||||
const int32_t f,
|
const int32_t f,
|
||||||
int32_t x1, int32_t y1, int32_t x2, int32_t y2);
|
int32_t x1, int32_t y1, int32_t x2, int32_t y2);
|
||||||
|
|
||||||
|
void G_UpdateScreenArea(void);
|
||||||
void G_SaveMapState(void);
|
void G_SaveMapState(void);
|
||||||
void G_RestoreMapState(void);
|
void G_RestoreMapState(void);
|
||||||
]]
|
]]
|
||||||
|
@ -1486,8 +1487,11 @@ ffi.metatype("projectile_t", projectile_mt)
|
||||||
local user_defs_mt = {
|
local user_defs_mt = {
|
||||||
__index = {
|
__index = {
|
||||||
set_screen_size = function(ud, screen_size)
|
set_screen_size = function(ud, screen_size)
|
||||||
|
if (ud.screen_size ~= screen_size) then
|
||||||
-- TODO: modify .statusbarmode accordingly
|
-- TODO: modify .statusbarmode accordingly
|
||||||
ud.screen_size = screen_size
|
ud.screen_size = screen_size
|
||||||
|
ffiC.G_UpdateScreenArea()
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
|
|
||||||
set_volume_number = function(ud, volume_number)
|
set_volume_number = function(ud, volume_number)
|
||||||
|
|
|
@ -23,7 +23,7 @@ correctness in a broad sense, which encompasses multiple issues.
|
||||||
|
|
||||||
* LunaCON more strictly validates the CON source at translation time. For
|
* LunaCON more strictly validates the CON source at translation time. For
|
||||||
example, using labels of mismatched type, such as a ++define++d number where
|
example, using labels of mismatched type, such as a ++define++d number where
|
||||||
an `move` is expected, issues an translation error.
|
a `move` is expected, issues an translation error.
|
||||||
|
|
||||||
* Lexically and syntactically, LunaCON accepts only a subset of what the C-CON
|
* Lexically and syntactically, LunaCON accepts only a subset of what the C-CON
|
||||||
translator would pass through. This includes rejecting clearly erroneous code
|
translator would pass through. This includes rejecting clearly erroneous code
|
||||||
|
|
|
@ -237,6 +237,7 @@ G_PrintGameText;
|
||||||
G_ScreenText;
|
G_ScreenText;
|
||||||
G_ScreenTextSize;
|
G_ScreenTextSize;
|
||||||
|
|
||||||
|
G_UpdateScreenArea;
|
||||||
G_SaveMapState;
|
G_SaveMapState;
|
||||||
G_RestoreMapState;
|
G_RestoreMapState;
|
||||||
};
|
};
|
||||||
|
|
|
@ -979,7 +979,7 @@ function check.reserved_bits(flags, allowedbits, suffix)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Define.ALLOWED_VIEWTYPE = truetab { 0, 1, 3,4, 5, 7, 8, -5, -7 }
|
Define.ALLOWED_VIEWTYPE = truetab { 0, 1, 2, 3,4, 5, 7, 8, -5, -7 }
|
||||||
|
|
||||||
function Define.composite(labeltype, identifier, ...)
|
function Define.composite(labeltype, identifier, ...)
|
||||||
local oldtype = g_labeltype[identifier]
|
local oldtype = g_labeltype[identifier]
|
||||||
|
|
Loading…
Reference in a new issue