Results 1 to 4 of 4

Thread: Have Lua Scripts accept both "color" and "colour" for function names etc.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Post Have Lua Scripts accept both "color" and "colour" for function names etc.

    Everywhere where there's a reference to an object's "color", could you please also accept "colour" as well? It would save a lot of confusion on my end.
    "Color and colour are different spellings of the same word. Color is the preferred spelling in American English, and colour is preferred in all other main varieties of English." - [URL="http://grammarist.com/spelling/color-colour/"]Grammarist[/URL].

    API:
    • "[URL="http://berserk-games.com/knowledgebase/api/#onPlayerChangedColor"]onPlayerChangedColor[/URL]" should also accept "onPlayerChangedColour".
    • "[URL=http://berserk-games.com/knowledgebase/api/#printToColor]broadcastToColor[/URL]" should also accept "broadcastToColour". (The link to this is bugged... o.o)
    • "printToColor" should also accept "printToColour".
    • "[URL="http://berserk-games.com/knowledgebase/api/#stringColorToRGB"]stringColorToRGB[/URL]" should also accept "stringColourToRGB".


    Object
    • "[URL="http://berserk-games.com/knowledgebase/object/#held_by_color"]held_by_color[/URL]" should also accept "held_by_colour".
    • "[URL="http://berserk-games.com/knowledgebase/object/#getColorTint"]getColorTint[/URL]" should also accept "getColourTint".
    • "[URL="http://berserk-games.com/knowledgebase/object/#setColorTint"]setColorTint[/URL]" should also accept "setColourTint".
    • "[URL="http://berserk-games.com/knowledgebase/object/#dealToColor"]dealToColor[/URL]" should also accept "dealToColour".
    • "[URL="http://berserk-games.com/knowledgebase/object/#dealToColorWithOffset"]dealToColorWithOffset[/URL]" should also accept "dealToColourWithOffset".
    • In [URL="http://berserk-games.com/knowledgebase/object/#getCustomObject"]getCustomObject[/URL], "specular_color" should also accept "specular_colour".


    Player
    • "[URL="http://berserk-games.com/knowledgebase/player/#color"]color[/URL]" should also accept "colour".
    • "changeColor" should also accept "changeColour"

    Thanks.
    Last edited by Mark; 08-14-2016 at 02:34 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •