author | Wuzzy |
Fri, 27 Nov 2020 13:45:03 +0100 | |
changeset 2200 | b285ffef13e0 |
parent 1834 | 323d6e659cd7 |
permissions | -rw-r--r-- |
1728
26fbc53190c5
Add sandbox page to play around with wiki syntax
Wuzzy <almikes@aol.com>
parents:
1726
diff
changeset
|
1 |
#summary Little tidbits that await proper structuring |
8
55340ce0339a
Created wiki page through web user interface.
vittorio.giovara@gmail.com
parents:
diff
changeset
|
2 |
|
504
fbc43fa808ff
Explain purpose of page, add undocumented Lua functions with parameters and guesses what they might do.
almikes@aol.com
parents:
8
diff
changeset
|
3 |
= Introduction = |
fbc43fa808ff
Explain purpose of page, add undocumented Lua functions with parameters and guesses what they might do.
almikes@aol.com
parents:
8
diff
changeset
|
4 |
This page is a collection of random unsorted or unfinished stuff which is not good or structured enough to be put into one of the “real” wiki pages. Wiki editors: If something becomes actually useable, please move it to the appropriate wiki page and remove it from this page. |
fbc43fa808ff
Explain purpose of page, add undocumented Lua functions with parameters and guesses what they might do.
almikes@aol.com
parents:
8
diff
changeset
|
5 |
|
fbc43fa808ff
Explain purpose of page, add undocumented Lua functions with parameters and guesses what they might do.
almikes@aol.com
parents:
8
diff
changeset
|
6 |
This page is intentionally chaotic and may change rapidliy at any time. |
fbc43fa808ff
Explain purpose of page, add undocumented Lua functions with parameters and guesses what they might do.
almikes@aol.com
parents:
8
diff
changeset
|
7 |
|
fbc43fa808ff
Explain purpose of page, add undocumented Lua functions with parameters and guesses what they might do.
almikes@aol.com
parents:
8
diff
changeset
|
8 |
= How to add a settings option = |
fbc43fa808ff
Explain purpose of page, add undocumented Lua functions with parameters and guesses what they might do.
almikes@aol.com
parents:
8
diff
changeset
|
9 |
* `QStringList HWGame::setArguments()` in `game.cpp` is the function that prepares the argument list |
fbc43fa808ff
Explain purpose of page, add undocumented Lua functions with parameters and guesses what they might do.
almikes@aol.com
parents:
8
diff
changeset
|
10 |
* `void GameUIConfig::SaveOptions()` in `gameuiconfig.cpp` loads (or initializes) values and set the widgets to those values |
634 | 11 |
* `PageOptions::PageOptions(QWidget* parent) : AbstractPage(parent)` is where you would add your widget |
12 |
||
1239 | 13 |
= How to convert a `.hwmap` file to a Lua string = |
1238 | 14 |
|
1834
323d6e659cd7
RandomNotes: Remove undocumented functions, it works again!
Wuzzy
parents:
1814
diff
changeset
|
15 |
Run the shell script `tools/hwmap2lua.sh` found in the Hedgewars repository. Help is included in the source code. |