Advertisement
Guest User

Untitled

a guest
May 10th, 2017
3,375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. function SkirmishPanelShow()
  2. {
  3. trace("SCOREBOARD: SkirmishPanelShow");
  4. var _loc2_ = ScoreBoard.InnerScoreBoard.QuestPanel;
  5. if(_loc2_._visible)
  6. {
  7. return undefined;
  8. }
  9. var _loc3_ = gameAPI.GetCurrentSkirmishID();
  10. if(_loc3_ == 0)
  11. {
  12. return undefined;
  13. }
  14. var _loc4_ = gameAPI.GetSkirmishTitle(_loc3_);
  15. var _loc5_ = gameAPI.GetSkirmishDesc(_loc3_);
  16. var _loc6_ = gameAPI.GetSkirmishDetais(_loc3_);
  17. if(!_loc4_ || _loc4_ == "")
  18. {
  19. return undefined;
  20. }
  21. _loc2_._visible = true;
  22. _loc2_.Icon._visible = false;
  23. _loc2_.InActive._visible = false;
  24. _loc2_.Title._visible = true;
  25. var _loc7_ = _global.GameInterface.Translate("#SFUI_Skirmishes_Title");
  26. _loc2_.Title.Text.htmlText = _global.ConstructString(_loc7_,_loc4_);
  27. _global.AutosizeTextDown(_loc2_.Title.Text,8);
  28. _loc2_.Title.Text.autoSize = "left";
  29. _loc2_.Desc.Desc.htmlText = _loc5_;
  30. _global.AutosizeTextDown(_loc2_.Desc.Desc,7);
  31. _loc2_.Desc.Desc.autoSize = "left";
  32. _loc2_.Desc._y = (_loc2_.Bg._height - _loc2_.Desc._height) / 2 + 8;
  33. _loc2_.DescDetails.DescDetails.htmlText = _loc6_;
  34. _global.AutosizeTextDown(_loc2_.DescDetails.DescDetails,7);
  35. _loc2_.DescDetails.DescDetails.autoSize = "left";
  36. _loc2_.DescDetails._y = (_loc2_.Bg._height - _loc2_.DescDetails._height) / 2 + 8;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement