Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SkirmishPanelShow()
- {
- trace("SCOREBOARD: SkirmishPanelShow");
- var _loc2_ = ScoreBoard.InnerScoreBoard.QuestPanel;
- if(_loc2_._visible)
- {
- return undefined;
- }
- var _loc3_ = gameAPI.GetCurrentSkirmishID();
- if(_loc3_ == 0)
- {
- return undefined;
- }
- var _loc4_ = gameAPI.GetSkirmishTitle(_loc3_);
- var _loc5_ = gameAPI.GetSkirmishDesc(_loc3_);
- var _loc6_ = gameAPI.GetSkirmishDetais(_loc3_);
- if(!_loc4_ || _loc4_ == "")
- {
- return undefined;
- }
- _loc2_._visible = true;
- _loc2_.Icon._visible = false;
- _loc2_.InActive._visible = false;
- _loc2_.Title._visible = true;
- var _loc7_ = _global.GameInterface.Translate("#SFUI_Skirmishes_Title");
- _loc2_.Title.Text.htmlText = _global.ConstructString(_loc7_,_loc4_);
- _global.AutosizeTextDown(_loc2_.Title.Text,8);
- _loc2_.Title.Text.autoSize = "left";
- _loc2_.Desc.Desc.htmlText = _loc5_;
- _global.AutosizeTextDown(_loc2_.Desc.Desc,7);
- _loc2_.Desc.Desc.autoSize = "left";
- _loc2_.Desc._y = (_loc2_.Bg._height - _loc2_.Desc._height) / 2 + 8;
- _loc2_.DescDetails.DescDetails.htmlText = _loc6_;
- _global.AutosizeTextDown(_loc2_.DescDetails.DescDetails,7);
- _loc2_.DescDetails.DescDetails.autoSize = "left";
- _loc2_.DescDetails._y = (_loc2_.Bg._height - _loc2_.DescDetails._height) / 2 + 8;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement