fix on ruleviolation reason indexes

This commit is contained in:
AndreFaramir 2012-06-05 13:03:35 -03:00
parent 023a4ebef6
commit 0d34af972e
1 changed files with 22 additions and 21 deletions

View File

@ -2,27 +2,27 @@ RuleViolation = {}
-- private variables
local rvreasons = {}
rvreasons[0] = tr("1a) Offensive Name")
rvreasons[1] = tr("1b) Invalid Name Format")
rvreasons[2] = tr("1c) Unsuitable Name")
rvreasons[3] = tr("1d) Name Inciting Rule Violation")
rvreasons[4] = tr("2a) Offensive Statement")
rvreasons[5] = tr("2b) Spamming")
rvreasons[6] = tr("2c) Illegal Advertising")
rvreasons[7] = tr("2d) Off-Topic Public Statement")
rvreasons[8] = tr("2e) Non-English Public Statement")
rvreasons[9] = tr("2f) Inciting Rule Violation")
rvreasons[10] = tr("3a) Bug Abuse")
rvreasons[11] = tr("3b) Game Weakness Abuse")
rvreasons[12] = tr("3c) Using Unofficial Software to Play")
rvreasons[13] = tr("3d) Hacking")
rvreasons[14] = tr("3e) Multi-Clienting")
rvreasons[15] = tr("3f) Account Trading or Sharing")
rvreasons[16] = tr("4a) Threatening Gamemaster")
rvreasons[17] = tr("4b) Pretending to Have Influence on Rule Enforcement")
rvreasons[18] = tr("4c) False Report to Gamemaster")
rvreasons[19] = tr("Destructive Behaviour")
rvreasons[20] = tr("Excessive Unjustified Player Killing")
rvreasons[1] = tr("1a) Offensive Name")
rvreasons[2] = tr("1b) Invalid Name Format")
rvreasons[3] = tr("1c) Unsuitable Name")
rvreasons[4] = tr("1d) Name Inciting Rule Violation")
rvreasons[5] = tr("2a) Offensive Statement")
rvreasons[6] = tr("2b) Spamming")
rvreasons[7] = tr("2c) Illegal Advertising")
rvreasons[8] = tr("2d) Off-Topic Public Statement")
rvreasons[9] = tr("2e) Non-English Public Statement")
rvreasons[10] = tr("2f) Inciting Rule Violation")
rvreasons[11] = tr("3a) Bug Abuse")
rvreasons[12] = tr("3b) Game Weakness Abuse")
rvreasons[13] = tr("3c) Using Unofficial Software to Play")
rvreasons[14] = tr("3d) Hacking")
rvreasons[15] = tr("3e) Multi-Clienting")
rvreasons[16] = tr("3f) Account Trading or Sharing")
rvreasons[17] = tr("4a) Threatening Gamemaster")
rvreasons[18] = tr("4b) Pretending to Have Influence on Rule Enforcement")
rvreasons[19] = tr("4c) False Report to Gamemaster")
rvreasons[20] = tr("Destructive Behaviour")
rvreasons[21] = tr("Excessive Unjustified Player Killing")
local rvactions = {}
rvactions[0] = tr("Notation")
@ -48,6 +48,7 @@ function RuleViolation.loadReasons()
local actions = g_game.getGMActions()
for reason, actionFlags in pairs(actions) do
local label = createWidget('RVListLabel', reasonsTextList)
print("LOAD REASON: " .. tostring(reason) .. " " .. tostring(actionFlags))
label:setText(rvreasons[reason])
label.reasonId = reason
label.actionFlags = actionFlags