package Ġcom . ly ee ed ar . Scre ens Ċ Ċ import Ġcom . badlogic . gdx . scenes . scene 2 d . ui . Stack Ċ import Ġcom . badlogic . gdx . scenes . scene 2 d . ui . Text Button Ċ import Ġcom . ly ee ed ar . Game . Zone Ċ import Ġcom . ly ee ed ar . Global Ċ import Ġcom . ly ee ed ar . Main Game Ċ import Ġcom . ly ee ed ar . UI .* Ċ import Ġcom . ly ee ed ar . Util . Statics Ċ Ċ class ĠZone Screen Ġ: ĠAbstract Screen () Ċ { Ċ ĉ val Ġgame Data Bar Ġ= ĠGame Data Bar () Ċ ĉ val Ġnavigation Bar Ġ= ĠNavigation Bar ( Main Game . Screen Enum . ZONE ) ĊĊ ĉ var Ġzone Created From : ĠInt Ġ= Ġ- 1 Ċ ĉ late init Ġvar Ġzone : ĠZone ĊĊ ĉ override Ġfun Ġcreate () Ċ ĉ { Ċĉ ĉ draw FPS Ġ= Ġfalse Ċĉ ĉ update Table () ĊĊĉ ĉ if Ġ(! Statics . release ) Ċĉ ĉ { Ċĉĉ ĉ debug Console . register (" set zone ", Ġ"", Ġ{ Ġargs , Ġconsole Ġ-> Ċĉĉĉ ĉ val Ġzone Ġ= Ġargs [ 0 ]. toInt () Ċĉĉĉ ĉ val Ġprogress ion Ġ= Ġargs [ 1 ]. toInt () ĊĊĉĉĉ ĉ Global . data . current Zone Ġ= Ġzone Ċĉĉĉ ĉ Global . data . current Zone Progress ion Ġ= Ġprogress ion ĊĊĉĉĉ ĉ update Table () ĊĊĉĉĉ ĉ true Ċĉĉ ĉ }) Ċĉ ĉ } Ċ ĉ } ĊĊ ĉ fun Ġupdate Table () Ċ ĉ { Ċĉ ĉ if Ġ( Global . data . current Zone Ġ!= Ġzone Created From ) Ċĉ ĉ { Ċĉĉ ĉ zone Ġ= ĠZone . load ( Global . data . current Zone ) Ċĉĉ ĉ zone Created From Ġ= ĠGlobal . data . current Zone Ċĉ ĉ } ĊĊĉ ĉ main Table . clear () ĊĊĉ ĉ val Ġwidget Ġ= ĠZone Widget ( zone ) ĊĊĉ ĉ main Table . add ( game Data Bar ). grow X () Ċĉ ĉ main Table . row () ĊĊĉ ĉ widget . width Ġ= Ġstage . width ĊĊĉ ĉ val Ġzone Stack Ġ= ĠStack () Ċĉ ĉ zone Stack . add ( widget ) ĊĊĉ ĉ if Ġ( Global . data . current Zone Progress ion Ġ== ĠZone . num En counters ) Ċĉ ĉ { Ċĉĉ ĉ val Ġnext Zone Button Ġ= ĠText Button (" Jo urney ĠOn wards ", ĠStatic s . skin ) Ċĉĉ ĉ next Zone Button . add ClickListener Ġ{ Ċĉĉĉ ĉ Global . data . current Zone ++ Ċĉĉĉ ĉ Global . data . current Zone Progress ion Ġ= Ġ 0 ĊĊĉĉĉ ĉ update Table () Ċĉĉ ĉ } ĊĊĉĉ ĉ zone Stack . add Table ( next Zone Button ). expand (). center (). bottom (). width ( 2 0 0 f ). height ( 3 0 f ). pad ( 5 f ) Ċĉ ĉ } Ċĉ ĉ else Ċĉ ĉ { Ċĉĉ ĉ val Ġbegin Button Ġ= ĠText Button (" Begin ", ĠStatic s . skin ) Ċĉĉ ĉ begin Button . add ClickListener Ġ{ Ċĉĉĉ ĉ val Ġmap Screen Ġ= ĠStatic s . game . get Typed Screen < Map Screen >() !! Ċĉĉĉ ĉ map Screen . set New Level ( zone ) ĊĊĉĉĉ ĉ Statics . game . switch Screen ( Main Game . Screen Enum . MAP ) Ċĉĉ ĉ } ĊĊĉĉ ĉ zone Stack . add Table ( begin Button ). expand (). center (). bottom (). width ( 2 0 0 f ). height ( 3 0 f ). pad ( 5 f ) Ċĉ ĉ } ĊĊĉ ĉ main Table . add ( zone Stack ). grow () Ċĉ ĉ main Table . row () ĊĊĉ ĉ main Table . add ( navigation Bar ). grow X () Ċ ĉ } ĊĊ ĉ override Ġfun Ġshow () Ċ ĉ { Ċĉ ĉ super . show () ĊĊĉ ĉ update Table () Ċĉ ĉ game Data Bar . re bind () Ċ ĉ } ĊĊ ĉ override Ġfun Ġdo Render ( delta : ĠFloat ) Ċ ĉ { ĊĊ ĉ } Ċ }