RandomNotes.wiki
author Wuzzy
Fri, 01 Jan 2016 21:17:56 +0000
changeset 705 dd150d4e3469
parent 704 fa97a33b0375
child 706 61a8cbc2d624
permissions -rw-r--r--
test links
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8
55340ce0339a Created wiki page through web user interface.
vittorio.giovara@gmail.com
parents:
diff changeset
     1
#summary little tidbits that await proper structuring
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
= Undocumented LuaAPI functions =
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
Full list (without parameters, but automatically generated) at http://hw.ercatec.net/docs/lua_wiki_check.php.
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
633
87ad9962ee1f Clean-up (2)
Wuzzy
parents: 632
diff changeset
    11
 * `CampaignLock`
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
    12
  * Marked as “TODO” in source code
633
87ad9962ee1f Clean-up (2)
Wuzzy
parents: 632
diff changeset
    13
 * `CampaignUnlock`
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
    14
  * Marked as “TODO” in source code
633
87ad9962ee1f Clean-up (2)
Wuzzy
parents: 632
diff changeset
    15
 * `SetGearCollisionMask(gearUid, mask)`
87ad9962ee1f Clean-up (2)
Wuzzy
parents: 632
diff changeset
    16
  * `mask` can be between `0x0000` and `0xFFFF`. `0xFFFF` collides with everything, `0xFF00` collides with land only, `0x00FF` collides with other gears only, `0x0000` collides with nothing. The meaning of other values is unclear and should be discovered.
87ad9962ee1f Clean-up (2)
Wuzzy
parents: 632
diff changeset
    17
 * `GetGearCollisionMask(gearUid)`
87ad9962ee1f Clean-up (2)
Wuzzy
parents: 632
diff changeset
    18
 * `DeclareAchievement(achievementId, teamname, location, value)`
87ad9962ee1f Clean-up (2)
Wuzzy
parents: 632
diff changeset
    19
 * `EndLuaTest(state)`
87ad9962ee1f Clean-up (2)
Wuzzy
parents: 632
diff changeset
    20
  * state is `TEST_SUCCESSFUL` or `TEST_FAILED)`
87ad9962ee1f Clean-up (2)
Wuzzy
parents: 632
diff changeset
    21
 * `SetAmmoStore(loadouts, probabilities, delays, reinforcements)`
87ad9962ee1f Clean-up (2)
Wuzzy
parents: 632
diff changeset
    22
 * `SetGearAIHints(gearUid, aiHints)`
87ad9962ee1f Clean-up (2)
Wuzzy
parents: 632
diff changeset
    23
 * `onAchievementsDeclaration()`
87ad9962ee1f Clean-up (2)
Wuzzy
parents: 632
diff changeset
    24
 * `onSpecialPoint(x, y, flags)`
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
    25
fbc43fa808ff Explain purpose of page, add undocumented Lua functions with parameters and guesses what they might do.
almikes@aol.com
parents: 8
diff changeset
    26
= 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
    27
 * `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
    28
 * `void GameUIConfig::SaveOptions()` in `gameuiconfig.cpp` loads (or initializes) values and set the widgets to those values
634
174622a27c8f web-edit: test
sheepluva
parents: 633
diff changeset
    29
 * `PageOptions::PageOptions(QWidget* parent) :  AbstractPage(parent)` is where you would add your widget
174622a27c8f web-edit: test
sheepluva
parents: 633
diff changeset
    30
174622a27c8f web-edit: test
sheepluva
parents: 633
diff changeset
    31
680
e0a3df1ac413 test bullet points
Wuzzy
parents: 634
diff changeset
    32
= Syntax test =
634
174622a27c8f web-edit: test
sheepluva
parents: 633
diff changeset
    33
680
e0a3df1ac413 test bullet points
Wuzzy
parents: 634
diff changeset
    34
== Bullet points ==
634
174622a27c8f web-edit: test
sheepluva
parents: 633
diff changeset
    35
680
e0a3df1ac413 test bullet points
Wuzzy
parents: 634
diff changeset
    36
 * Single lonely bullet point
e0a3df1ac413 test bullet points
Wuzzy
parents: 634
diff changeset
    37
e0a3df1ac413 test bullet points
Wuzzy
parents: 634
diff changeset
    38
 * Two bullet points
e0a3df1ac413 test bullet points
Wuzzy
parents: 634
diff changeset
    39
 * Two bullet points
e0a3df1ac413 test bullet points
Wuzzy
parents: 634
diff changeset
    40
e0a3df1ac413 test bullet points
Wuzzy
parents: 634
diff changeset
    41
 * Three bullets!
e0a3df1ac413 test bullet points
Wuzzy
parents: 634
diff changeset
    42
 * Three bullets!
e0a3df1ac413 test bullet points
Wuzzy
parents: 634
diff changeset
    43
 * Three bullets!
704
fa97a33b0375 Test some links
Wuzzy
parents: 680
diff changeset
    44
fa97a33b0375 Test some links
Wuzzy
parents: 680
diff changeset
    45
== Linktest ==
fa97a33b0375 Test some links
Wuzzy
parents: 680
diff changeset
    46
705
dd150d4e3469 test links
Wuzzy
parents: 704
diff changeset
    47
[#Linktest TESTLINK1]
dd150d4e3469 test links
Wuzzy
parents: 704
diff changeset
    48
[#Bullet%20points TESTLINK2]