I've been working on a GUI type Race Control Manager, but I'm missing a Penalty Matrix.
By that, I mean a GUI way of clicking a button that automatically gives the player clicked the penalty chosen.
The penalties available should be;
30 seconds
45 seconds
drive through
stop and go
spec
clear (clear last penalty given)
kick
ban 12 hrs
ban 1 day
ban 30 days
ban 999 days
clear ban
All these are available via LFS commands.
See atttached image for what it should look like.
I've included the coding I've managed so far, which basically only gives the shape of the matrix with headers. Add to your includes folder, etc., and activate ingame via !matrix command.
I know what I want this 'matrix' to do, but just don't have necessary coding skills to do it.
My coding allows for up to 24 drivers, but don't know if it should be up to 32.
Also. It's probably far too big to be done in one big display; not sure LFS allows so many buttons at once, so probably has to be done in at least 2 displays. In which case maybe broken down in sub-routinea as follows;
(Sub) Racing/Spec Penalties.......... ...........(Sub).Kick/Ban Penalties
-----------------------------------------------------------------------------
30 seconds..............................................kick
45 seconds..............................................ban 12 hrs
drive through...........................................ban 1 day
stop and go.............................................ban 30 days
spec.......................................................ban 999 days
clear (clear last penalty given) ..................clear ban
Or maybe 3 displays, each with it's own sub-routine;
Racing/Spec Penalties.. ..Kick/Ban Penalties.. ..Clear
-------------------------- ------------------------ -------
30 seconds................ ...kick...................... .clear last penalty
45 seconds............... ....ban 12 hrs............ . clear ban
drive through........... .....ban 1 day
stop and go.............. ....ban 30 days
spec........................ ....ban 999 days
Assuming this is feasible, anyone willing to take this on?
Sorry. Nothing to offer but my thanks!
EDIT
===
Added code and image for breaking up into 2 tables rather than the 1.
.
By that, I mean a GUI way of clicking a button that automatically gives the player clicked the penalty chosen.
The penalties available should be;
30 seconds
45 seconds
drive through
stop and go
spec
clear (clear last penalty given)
kick
ban 12 hrs
ban 1 day
ban 30 days
ban 999 days
clear ban
All these are available via LFS commands.
See atttached image for what it should look like.
I've included the coding I've managed so far, which basically only gives the shape of the matrix with headers. Add to your includes folder, etc., and activate ingame via !matrix command.
I know what I want this 'matrix' to do, but just don't have necessary coding skills to do it.
My coding allows for up to 24 drivers, but don't know if it should be up to 32.
Also. It's probably far too big to be done in one big display; not sure LFS allows so many buttons at once, so probably has to be done in at least 2 displays. In which case maybe broken down in sub-routinea as follows;
(Sub) Racing/Spec Penalties.......... ...........(Sub).Kick/Ban Penalties
-----------------------------------------------------------------------------
30 seconds..............................................kick
45 seconds..............................................ban 12 hrs
drive through...........................................ban 1 day
stop and go.............................................ban 30 days
spec.......................................................ban 999 days
clear (clear last penalty given) ..................clear ban
Or maybe 3 displays, each with it's own sub-routine;
Racing/Spec Penalties.. ..Kick/Ban Penalties.. ..Clear
-------------------------- ------------------------ -------
30 seconds................ ...kick...................... .clear last penalty
45 seconds............... ....ban 12 hrs............ . clear ban
drive through........... .....ban 1 day
stop and go.............. ....ban 30 days
spec........................ ....ban 999 days
Assuming this is feasible, anyone willing to take this on?
Sorry. Nothing to offer but my thanks!
EDIT
===
Added code and image for breaking up into 2 tables rather than the 1.
.