Skip to content

Add dummy data funxtion #5

@GammaGames

Description

@GammaGames

Scenic Route said on discord:

It's also useful to have the API wrapper return a stub when you're designing your UI. I use this:

scores = {
    { player = "ScenicRouteSoftware", rank = 1, value = 6000 },
    { player = "elephanteater", rank = 2, value = 5000 },
    { player = "fatnosegaming", rank = 3, value = 4000 },
    { player = "Poe", rank = 5, value = 2599 },
    { player = "kmchipman", rank = 4, value = 2800 },
    { player = "ledbetter", rank = 7, value = 2390 },
    { player = "pixelghost", rank = 6, value = 2400 },
    { player = "yessclara", rank = 8, value = 2200 },
    { player = "emre", rank = 9, value = 2199 },
    { player = "callmesteam", rank = 5293, value = 30 }
}

might be useful too include a function to check for default user strings, and include them in the dummy data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions