Lib-Scenarios

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);

You must login to post a comment. Don't have an account? Register to get one!

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

Authors

Relationships

Embedded library
LibStub