private void InitializeCommandLabels() { if (this._labels != null) { return; } Resources instance = Singleton <Resources> .Instance; CommonDefine.CommonIconGroup icon = instance.CommonDefine.Icon; int jukeBoxIconId = instance.CommonDefine.Icon.JukeBoxIconID; Sprite sprite; instance.itemIconTables.ActionIconTable.TryGetValue(jukeBoxIconId, out sprite); int index = !Singleton <GameSystem> .IsInstance() ? 0 : Singleton <GameSystem> .Instance.languageInt; List <string> source; instance.Map.EventPointCommandLabelTextTable.TryGetValue(17, out source); this._labels = new CommandLabel.CommandInfo[1] { new CommandLabel.CommandInfo() { Text = source.GetElement <string>(index), Icon = sprite, IsHold = true, TargetSpriteInfo = icon.ActionSpriteInfo, Transform = this.LabelPoint, Condition = (Func <PlayerActor, bool>)null, Event = (Action)(() => { PlayerActor player = !Singleton <Manager.Map> .IsInstance() ? (PlayerActor)null : Singleton <Manager.Map> .Instance.Player; if (!Object.op_Inequality((Object)player, (Object)null)) { return; } player.CurrentjukePoint = this; MapUIContainer.SetVisibleHUD(false); player.PlayerController.ChangeState("Idle"); MapUIContainer.JukeBoxUI.ClosedAction = (Action)(() => { MapUIContainer.SetVisibleHUD(true); player.PlayerController.ChangeState("Normal"); }); MapUIContainer.SetActiveJukeBoxUI(true); }) } }; }