1 -- In this file we define functions that serves for compass window
8 function game
:areInSilan()
9 polygons
= {{8128,-10208}, {11368,-10208}, {11392,-12392}, {8096,-12368}}
10 local x
,y
= getPlayerPos()
12 local z
= point_inside_poly(x
, y
, polygons
)
20 function game
:updateCompass()
21 if game
.InGameDbInitialized
== false then
25 local calendar_win
= getUI("ui:interface:compass:calendar")
26 local format_date
= "%d %m %Y %H:%M"
27 format_date
= findReplaceAll(format_date
, "%m", i18n
.get("uiMonth"..getTimestampHuman("%m")):toUtf8())
28 calendar_win
.tooltip
= getUCtf8(getTimestampHuman(format_date
))
32 function game
:displayDynE()
33 local win
= getUI("ui:interface:app2453")
34 if win
~= nil and win
.active
== true then
37 AppZone
:launchApp(2453)
41 function game
:displayCalendar()
42 local win
= getUI("ui:interface:webig")
43 if win
~= nil and win
.active
== true then
50 setOnDraw(getUI("ui:interface:compass"), "game:updateCompass()")
53 RYZOM_COMPASS_VERSION
= 10469