ESO Lua File v100015

ingame/slashcommands/pc/slashcommands_pc.lua

[◄ back to folders ]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
local function DoLogout()
     Logout()
end
SLASH_COMMANDS[GetString(SI_SLASH_LOGOUT)] = function (txt)
    DoLogout()
end
SLASH_COMMANDS[GetString(SI_SLASH_CAMP)] = function (txt)
     DoLogout()
end
SLASH_COMMANDS[GetString(SI_SLASH_QUIT)] = function (txt)
     Quit()
end
SLASH_COMMANDS[GetString(SI_SLASH_FPS)] = function(txt)
    if GetSetting_Bool(SETTING_TYPE_UI, UI_SETTING_SHOW_FRAMERATE) then
        SetSetting(SETTING_TYPE_UI, UI_SETTING_SHOW_FRAMERATE, "false")
    else
        SetSetting(SETTING_TYPE_UI, UI_SETTING_SHOW_FRAMERATE, "true")
    end
end
SLASH_COMMANDS[GetString(SI_SLASH_LATENCY)] = function(txt)
    if GetSetting_Bool(SETTING_TYPE_UI, UI_SETTING_SHOW_LATENCY) then
        SetSetting(SETTING_TYPE_UI, UI_SETTING_SHOW_LATENCY, "false")
    else
        SetSetting(SETTING_TYPE_UI, UI_SETTING_SHOW_LATENCY, "true")
    end
end
SLASH_COMMANDS[GetString(SI_SLASH_STUCK)] = function(txt)
     if IsInGamepadPreferredMode() then
          ShowGamepadHelpScreen()
     else
          HELP_CUSTOMER_SUPPORT_KEYBOARD:OpenScreen(HELP_CUSTOMER_SERVICE_CHARACTER_STUCK_KEYBOARD_FRAGMENT)
     end
end
    SLASH_COMMANDS[GetString(SI_SLASH_REPORT_BUG)] = function(args)
         if IsInGamepadPreferredMode() then
              ShowGamepadHelpScreen()
         else
              HELP_CUSTOMER_SUPPORT_KEYBOARD:OpenScreen(HELP_CUSTOMER_SERVICE_SUBMIT_FEEDBACK_KEYBOARD_FRAGMENT)
         end
    end
    SLASH_COMMANDS[GetString(SI_SLASH_REPORT_FEEDBACK)] = function(args)
         if IsInGamepadPreferredMode() then
              ShowGamepadHelpScreen()
         else
              HELP_CUSTOMER_SUPPORT_KEYBOARD:OpenScreen(HELP_CUSTOMER_SERVICE_SUBMIT_FEEDBACK_KEYBOARD_FRAGMENT)
              HELP_CUSTOMER_SERVICE_SUBMIT_FEEDBACK_KEYBOARD:ClearFields()
         end
    end
end
SLASH_COMMANDS[GetString(SI_SLASH_REPORT_HELP)] = function(args)
     if IsInGamepadPreferredMode() then
          ShowGamepadHelpScreen()
     else
          HELP_CUSTOMER_SERVICE_ASK_FOR_HELP_KEYBOARD:OpenAskForHelp()
     end
end
SLASH_COMMANDS[GetString(SI_SLASH_REPORT_CHAT)] = function(args)
     if IsInGamepadPreferredMode() then
          ShowGamepadHelpScreen()
     else
          HELP_CUSTOMER_SERVICE_ASK_FOR_HELP_KEYBOARD:OpenAskForHelp(CUSTOMER_SERVICE_ASK_FOR_HELP_CATEGORY_REPORT_PLAYER, CUSTOMER_SERVICE_ASK_FOR_HELP_REPORT_PLAYER_SUBCATEGORY_HARASSMENT)
     end
end