Skip to content

Commit

Permalink
Merge pull request #15 from Lionas/develop
Browse files Browse the repository at this point in the history
v0.6.0リリース
  • Loading branch information
Lionas authored Aug 18, 2016
2 parents 75046a0 + 229d76b commit 4e63aed
Show file tree
Hide file tree
Showing 12 changed files with 127,644 additions and 150 deletions.
7 changes: 5 additions & 2 deletions LionasFoodAndDrinkReminder/Lang/de.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ ZO_CreateStringId("LIO_FADR_ENABLE_NOTIFY_TO_CHAT_TITLE", "Meldungen in Chat")
ZO_CreateStringId("LIO_FADR_ENABLE_NOTIFY_TO_CHAT_TOOLTIP", "Mitteilungen und Zustände im Chat ausgeben.")
ZO_CreateStringId("LIO_FADR_NOTIFY_BY_ZONE_CHANGING_TITLE", "Erinnerung nach Zonenwechsel")
ZO_CreateStringId("LIO_FADR_NOTIFY_BY_ZONE_CHANGING_TOOLTIP", "Nach jedem Zonenwechsel bekommst du eine Erinnerung über den Zustand deiner Mahlzeit.")
ZO_CreateStringId("LIO_FADR_NOTIFY_COOLDOWN_TITLE", "Benachrichtigung Verbot Zeit[Sekunde]")
ZO_CreateStringId("LIO_FADR_NOTIFY_COOLDOWN_TOOLTIP", "Mitteilung tritt nicht auf, bis die letzte Meldung an diese Zeit abgelaufen ist.")
ZO_CreateStringId("LIO_FADR_NOTIFY_COOLDOWN_TITLE", "Zeit zwischen Meldungen [sek]")
ZO_CreateStringId("LIO_FADR_NOTIFY_COOLDOWN_TOOLTIP", "Falls Mitteilungen in dieser Zeit vorkommen sollten, werden diese nicht wiedergegeben.")
ZO_CreateStringId("LIO_FADR_DEBUG_TITLE", "Ermöglichen Sie Fehlersuchprogramm-Produktion")
ZO_CreateStringId("LIO_FADR_DEBUG_TOOLTIP", "Wenn Probleme vorgekommen werden, überprüfen Sie bitte für den Bericht.")

ZO_CreateStringId("LIO_FADR_TOP_SETTING_HEADER", "General")
ZO_CreateStringId("LIO_FADR_ZONE_SETTING_HEADER", "Zone ändern")
ZO_CreateStringId("LIO_FADR_DEBUG_SETTING_HEADER", "für das Fehlersuchprogramm")

-- keybinds
ZO_CreateStringId("SI_BINDING_NAME_LIO_FADR_ACTIVATE", "Aktiviere/Deaktiviere Meldung")
3 changes: 3 additions & 0 deletions LionasFoodAndDrinkReminder/Lang/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ ZO_CreateStringId("LIO_FADR_NOTIFY_BY_ZONE_CHANGING_TITLE", "Notify by zone chan
ZO_CreateStringId("LIO_FADR_NOTIFY_BY_ZONE_CHANGING_TOOLTIP", "If you enable notifying of the state of the meal by zone changing, please check out.")
ZO_CreateStringId("LIO_FADR_NOTIFY_COOLDOWN_TITLE", "Notification prohibition time[sec(s)]")
ZO_CreateStringId("LIO_FADR_NOTIFY_COOLDOWN_TOOLTIP", "Notification does not occur since the last notification to this period of time has elapsed.")
ZO_CreateStringId("LIO_FADR_DEBUG_TITLE", "Enable debug output")
ZO_CreateStringId("LIO_FADR_DEBUG_TOOLTIP", "If issues are occured, please check out for report.")

ZO_CreateStringId("LIO_FADR_TOP_SETTING_HEADER", "General")
ZO_CreateStringId("LIO_FADR_ZONE_SETTING_HEADER", "Zone Change")
ZO_CreateStringId("LIO_FADR_DEBUG_SETTING_HEADER", "For debug")

-- keybinds
ZO_CreateStringId("SI_BINDING_NAME_LIO_FADR_ACTIVATE", "Enable/Disable Notify")
5 changes: 4 additions & 1 deletion LionasFoodAndDrinkReminder/Lang/jp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ ZO_CreateStringId("LIO_FADR_NOTIFY_BY_ZONE_CHANGING_TITLE", "ゾーン移動時
ZO_CreateStringId("LIO_FADR_NOTIFY_BY_ZONE_CHANGING_TOOLTIP", "ゾーン移動した(旅の祠・特定のエリアへ入った、または、出た)時に食事の状態を通知する場合はチェックしてください")
ZO_CreateStringId("LIO_FADR_NOTIFY_COOLDOWN_TITLE", "通知禁止時間[秒]")
ZO_CreateStringId("LIO_FADR_NOTIFY_COOLDOWN_TOOLTIP", "前回の通知からこの時間が経過するまでは次の通知は行われません")
ZO_CreateStringId("LIO_FADR_DEBUG_TITLE", "不具合時の出力を行う")
ZO_CreateStringId("LIO_FADR_DEBUG_TOOLTIP", "不具合が発生した場合、報告のための情報を取得する場合にチェックしてください")

ZO_CreateStringId("LIO_FADR_TOP_SETTING_HEADER", "全体設定")
ZO_CreateStringId("LIO_FADR_TOP_SETTINGHEADER", "全体設定")
ZO_CreateStringId("LIO_FADR_ZONE_SETTING_HEADER", "ゾーン移動")
ZO_CreateStringId("LIO_FADR_DEBUG_SETTING_HEADER", "デバッグ用")

-- keybinds
ZO_CreateStringId("SI_BINDING_NAME_LIO_FADR_ACTIVATE", "通知の切り替え")
108 changes: 108 additions & 0 deletions LionasFoodAndDrinkReminder/LioFADR_CommonUtil.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
-- Lionas's Food & Drink Reminder
-- Author: Lionas
-- CommonUtil

LioFADRCommon = {}

-- テーブルの長さを取得する
function LioFADRCommon.getTableLength(T)

local count = 0

if (T ~= nil) then

for _ in pairs(T) do
count = count + 1
end

end

return count

end

-- テーブルに指定の要素が含まれているかどうか
function LioFADRCommon.isContain(element, tbl)

if table == nil or LioFADRCommon.getTableLength(tbl) == 0 then
return false
end

for _, id in pairs(tbl) do

if( id == element ) then
return true
end

end

return false

end


-- テーブルに指定のkeyが含まれているかどうか
function LioFADRCommon.isContainKey(key, tbl)

if table == nil or LioFADRCommon.getTableLength(tbl) == 0 then
return false
end

for k, v in pairs(tbl) do

if( k == key ) then
return true
end

end

return false

end


-- Clear table
function LioFADRCommon.clearTable(tbl)

if(tbl ~= nil and (LioFADRCommon.getTableLength(tbl) ~= 0)) then

for i, v in pairs(tbl) do
tbl[i] = nil
end

end

end


-- Insert table
function LioFADRCommon.insertTable(tbl, element)

if(not LioFADRCommon.isContain(element, tbl)) then
table.insert(tbl, element)
end

end


-- テーブルから削除
function LioFADRCommon.removeFromTable(table, abilityId)

local i = 1
while (i <= #table) do
if(table[i] == abilityId) then
table[i] = nil
else
i = i + 1
end
end

end

-- 色設定
function LioFADRCommon.getColoredString(color, str)

return "|c" .. color .. str .. "|r"

end

Loading

0 comments on commit 4e63aed

Please sign in to comment.