Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
RingRacers
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lighto97
RingRacers
Compare revisions
master to map-thumbnail-and-minimap
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
Lighto97/RingRacers
Select target project
No results found
map-thumbnail-and-minimap
Select Git revision
Branches
bubble-ballswitch-softlock
disable-discordrpc
fault-respawn
map-thumbnail-and-minimap
master
revert-182e1a4b
Tags
v2.0
v2.1
v2.2
v2.3
10 results
Swap
Target
KartKrew/RingRacers
Select target project
KartKrew/RingRacers
bitten2up/RingRacers
X.organic/RingRacers
StarManiaKG/the-story-of-subsequent-tutorials-and-dance-dance-revolutions-remastered-rocking-the-4th
LoganAir/RingRacers
Hanicef/RingRacers
aa/RingRacers
JugadorXEI/RingRacers
Jisk/RingRacers
Callmore/RingRacers
Lugent/RingRacers
Chopp/ring-racers-cope
tertu/RingRacers
lavla/RingRacers
Snu/RingRacers
Zwip-Zwap_Zapony/RingRacers
haya_/RingRacers
Lactozilla/RingRacers
SMS_Alfredo/RingRacers
spectrumuk2/RingRacers
vanhouc/RingRacers
diskpoppy/RingRacers
kingofmemes2401g/ring-racers-kings-fork
LatiusAuro/RingRacers
Guil/RingRacers
Chearii/RingRacers
EeveeEuphoria/RingRacers
kimmy/RingRacers
spazzylemons/RingRacers
brosasaki/RingRacers
wehrlia/RingRacers
MightyMcTopher/RingRacers
FreakyMutantMan/RingRacers
troy236/RingRacers
Craftyawesome/RingRacers
NepDisk/RingRacers
alufolie91/RingRacers
bird/RingRacers
PencilVoid/RingRacers
Superstarxalien/RingRacers
WTF/RingRacers
Lach/RingRacers
frostu8/RingRacers
Benji_Menji/RingRacers
Dr_Nope/RingRacers
Nep2Disk/RingRacers
Lighto97/RingRacers
lostromb/RingRacers
luigi-budd/RingRacers
49 results
master
Select Git revision
Branches
disable-discordrpc
master
Tags
v2.0
v2.1
v2.2
v2.3
6 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
View open merge request
Commits on Source (3)
expose map thumbnail and minimap to lua, read-only
· ac5fa93e
Lighto97
authored
3 months ago
ac5fa93e
fix typo, mmpatch not tnpatch
· d9828992
Lighto97
authored
3 months ago
d9828992
Merge branch RingRacers:master into map-thumbnail-and-minimap
· 182e1a4b
Lighto97
authored
1 month ago
182e1a4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lua_maplib.c
+18
-0
18 additions, 0 deletions
src/lua_maplib.c
with
18 additions
and
0 deletions
src/lua_maplib.c
Edit
View file @
182e1a4b
...
@@ -2572,6 +2572,24 @@ static int mapheaderinfo_get(lua_State *L)
...
@@ -2572,6 +2572,24 @@ static int mapheaderinfo_get(lua_State *L)
lua_pushfixed
(
L
,
header
->
mobj_scale
);
lua_pushfixed
(
L
,
header
->
mobj_scale
);
else
if
(
fastcmp
(
field
,
"gravity"
))
else
if
(
fastcmp
(
field
,
"gravity"
))
lua_pushfixed
(
L
,
header
->
gravity
);
lua_pushfixed
(
L
,
header
->
gravity
);
else
if
(
fastcmp
(
field
,
"thumbnail"
))
{
patch_t
*
tnpatch
=
header
->
thumbnailPic
;
if
(
!
tnpatch
)
tnpatch
=
W_CachePatchName
(
"BLANKLVL"
,
PU_PATCH
);
LUA_PushUserdata
(
L
,
tnpatch
,
META_PATCH
);
}
else
if
(
fastcmp
(
field
,
"minimap"
))
{
patch_t
*
mmpatch
=
header
->
minimapPic
;
if
(
!
mmpatch
)
mmpatch
=
W_CachePatchName
(
"BLANKLVL"
,
PU_PATCH
);
LUA_PushUserdata
(
L
,
mmpatch
,
META_PATCH
);
}
else
{
else
{
// Read custom vars now
// Read custom vars now
// (note: don't include the "LUA." in your lua scripts!)
// (note: don't include the "LUA." in your lua scripts!)
...
...
This diff is collapsed.
Click to expand it.