Lib-Scenarios is a library which can help to get scenario name, step name, and step description with specified language.
By default it will return user's language, but one can toggle to show the specified language.
Functions
--[[ To get the scenario name by given the scenario ID ]] function lib:GetScenarioNameByID(scID, lang) ... end --[[ To get the scenario step-name by given the scenario ID and step ID ]] function lib:GetScenarioStepNameByID(scID, stID, lang) ... end --[[ To get the scenario step-description by given the scenario ID and step ID ]] function lib:GetScenarioStepDescByID(scID, stID, lang) ... end
Sample of function calls
local lib = LibStub:GetLibrary("Lib-Scenarios"); local sName, stpName, stpDesc; sName = lib:GetScenarioNameByID(53); stpName = lib:GetScenarioStepNameByID(53, 1); stpDesc = lib:GetScenarioStepDescByID(53, 1);
Facts
- Date created
- Aug 29, 2016
- Category
- Last update
- Oct 27, 2016
- Development stage
- Release
- Language
- deDE
- enUS
- esES
- esMX
- frFR
- itIT
- koKR
- ptBR
- ruRU
- zhCN
- zhTW
- License
- MIT License
- Curse link
- Lib-Scenarios
- Reverse relationships
- 1
- Downloads
- 400
- Recent files
- R: 7.1-release1 for 7.1.0 Oct 27, 2016
- A: r6 for 7.1.0 Oct 27, 2016
- R: 7.0-release2 for 7.0.3 Aug 31, 2016
- A: r4 for 7.0.3 Aug 29, 2016
- R: 7.0-release1 for 7.0.3 Aug 29, 2016
Authors
Relationships
- Embedded library
- LibStub