Overriding Spring widget API

Overriding Spring widget API

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
MasterBel
Posts: 271
Joined: 18 Mar 2018, 07:48

Overriding Spring widget API

Post by MasterBel »

Hey so BA have started removing things from the default included widgets (advanced player list no longer shows anyone's faction, for example) to the point of including an "anonymous" game mode, which in theory prevents anyone from knowing who anyone else is (intended for FFA). And this got me wondering.

I'm kind of new to widget development, but would you for example be able to steal away Spring's Read APIs, and substitute your own, to override/hide access to certain information from even User widgets that might try to get around these changes?

It'd work something like this, right?

Code: Select all

local Spring_Hidden = Spring
Spring = nil

-- Provide new API here
~MasterBel2
Post Reply

Return to “Lua Scripts”