Module:Lang: Difference between revisions

LVL (talk | contribs)
Updated some icons and icon colors to be accurate to what's in the game. Alphabetized the list.
LVL (talk | contribs)
Replaced keybinds with descriptive action names for clarity. Added spacing.
Line 144: Line 144:


     KEYBINDS = {
     KEYBINDS = {
    Attack = '{{Mouse|1}}',
        -- Movement
    ADS = '{{Mouse|2}}',
        MoveForward = "'''Move Forward button'''",
    AltCast = '{{Mouse|3}}',
        MoveBackwards = "'''Move Backward button'''",
    Reload = 'R',
        MoveLeft = "'''Move Left button'''",
    Roll = 'Shift',
        MoveRight = "'''Move Right button'''",
    Mantle = 'Space',
        Mantle = "'''Jump button'''",
    Crouch = 'Ctrl',
        Zipline = "'''Zipline button'''",
    AbilityMelee = 'Melee',
        Roll = "'''Dash button'''",
    Ability1 = '1',
        Crouch = "'''Crouch button'''",
    Ability2 = '2',
        MoveDown = "'''Fly Down button'''",
    Ability3 = '3',
        MoveUp = "'''Fly Up button'''",
    Ability4 = '4',
 
    MoveDown = 'Down',
        -- Combat
    MoveForward = 'Forward',
        Attack = "'''Fire button'''",
        ADS = "'''Alt-Fire button'''",
        Reload = "'''Reload button'''",
        AbilityMelee = "'''Melee button'''",
        HeldItem = "'''Melee Parry/Throw Held Item button'''",
 
        -- Abilities
        Ability1 = "'''Ability 1 button'''",
        Ability2 = "'''Ability 2 button'''",
        Ability3 = "'''Ability 3 button'''",
        Ability4 = "'''Ability 4 button'''",
        AltCast = "'''Alternate Cast'''",
 
        -- UI & Menus
        OpenHeroSheet = "'''Open Shop button'''",
        PurchaseQuickbuy = "'''Purchase Quickbuy button'''",
        Scoreboard = "'''Scoreboard button'''",
        OpenMainMenu = "'''Open Main Menu button'''",
 
        -- Communication
        PushToTalk = "'''Voice Chat button'''",
 
        -- Misc & Hideout
        Pause = "'''Pause button'''",
        ReplayDeath = "'''Replay Death button'''",
        HideoutUse = "'''Interact with an object in the Hideout button'''",
        HideoutCancelMatchmaking = "'''Cancel Matchmaking button'''",
     }
     }
      
      
Line 178: Line 204:
    end
    end
end)
end)
    -- Force spaces around keybinds where the source data omits them
    text = text:gsub("([a-zA-Z])'''", "%1 '''")
    text = text:gsub("'''([a-zA-Z])", "''' %1")


return frame:preprocess(text)
return frame:preprocess(text)