Exemplo n.º 1
0
        public static void showGeneralsArea(SimpleAIConfig gameConfig)
        {
            EditorGUILayout.BeginVertical("Box");

            EditorGUILayout.HelpBox(Language.alertGeneralIsGlobal(gameConfig.selectedLanguage), MessageType.Warning);

            EditorGUILayout.Space();

            Language.LangList tmpLang = (Language.LangList)EditorGUILayout.EnumPopup(Language.languageLabel(gameConfig.selectedLanguage), gameConfig.selectedLanguage);
            if (tmpLang != Language.LangList.select)
            {
                gameConfig.selectedLanguage = tmpLang;
            }

            //EditorUtility.DisplayDialog("Place Selection On Surface?", "Are you sure you want to place", "Place", "Do Not Place")
            AIBase.AIType AITypeTemp = (AIBase.AIType)EditorGUILayout.EnumPopup(Language.gameMovimentTypeLabel(gameConfig.selectedLanguage), gameConfig.AIType);
            if (AITypeTemp != AIBase.AIType.nothingSelected)
            {
                gameConfig.AIType = AITypeTemp;
            }

            gameConfig.groundingDistance = EditorGUILayout.Slider(new GUIContent(Language.groundVerifierLabel(gameConfig.selectedLanguage), iconLanding, Language.groundVerifierTooltip(gameConfig.selectedLanguage)), gameConfig.groundingDistance, 0.01f, 1);


            gameConfig.groundLayer = EditorTools.LayerMaskField(Language.groundLayerLabel(gameConfig.selectedLanguage), gameConfig.groundLayer);

            gameConfig.platformLayer = EditorTools.LayerMaskField(Language.platformLayerLabel(gameConfig.selectedLanguage), gameConfig.platformLayer);

            //TODO: Tradução
            EditorGUILayout.HelpBox("Layer onde pode estar qualquer objeto, parede e etc que pode interromper a visão do AI alem do chão.", MessageType.Info);
            gameConfig.obistacleLayer = EditorTools.LayerMaskField("Obstacles layer", gameConfig.obistacleLayer);

            EditorGUILayout.Space();
            EditorGUILayout.EndVertical();
        }
Exemplo n.º 2
0
 public static void DrawBanner(Language.LangList selectedLanguage)
 {
     EditorGUILayout.Space();
     if (imgBanner)
     {
         Rect  r;
         float ih     = imgBanner.height;
         float iw     = imgBanner.width;
         float result = ih / iw;
         float w      = Screen.width;
         result = result * w;
         r      = GUILayoutUtility.GetRect(ih, result);
         if (GUI.Button(r, new GUIContent(imgBanner, Language.GetRapaduraTooltip(selectedLanguage))))
         {
             Application.OpenURL("http://rapadurastudio.com/");
         }
     }
 }
Exemplo n.º 3
0
 public static string gameMovimentTypeLabel(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["gameMovimentTypeLabel"]);
 }
Exemplo n.º 4
0
 public static string languageLabel(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["languageLabel"]);
 }
Exemplo n.º 5
0
 public static string alertGeneralIsGlobal(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["alertGeneralIsGlobal"]);
 }
Exemplo n.º 6
0
 public static string alertGameMovimentType(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["alertGameMovimentType"]);
 }
Exemplo n.º 7
0
 public static string MomentOfAction(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["MomentOfAction"]);
 }
Exemplo n.º 8
0
 public static string platformLayerLabel(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["platformLayerLabel"]);
 }
Exemplo n.º 9
0
 public static string movimentTypes(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["movimentTypes"]);
 }
Exemplo n.º 10
0
 public static string platformSpritLookingLeft(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["platformSpritLookingLeft"]);
 }
Exemplo n.º 11
0
 public static string generalTitle(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["generalTitle"]);
 }
Exemplo n.º 12
0
 public static string statusTitle(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["statusTitle"]);
 }
Exemplo n.º 13
0
 public static string hide(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["hide"]);
 }
Exemplo n.º 14
0
 public static string show(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["show"]);
 }
Exemplo n.º 15
0
 public static string GetRapaduraTooltip(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["RapaduraTooltip"]);
 }
Exemplo n.º 16
0
 public static string groundVerifierTooltip(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["groundVerifierTooltip"]);
 }
Exemplo n.º 17
0
 public static string groundLayerLabel(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["groundLayerLabel"]);
 }
Exemplo n.º 18
0
 public static string movimentSpeed(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["movimentSpeed"]);
 }
Exemplo n.º 19
0
 public static string numberOfBehaviours(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["numberOfBehaviours"]);
 }
Exemplo n.º 20
0
 public static string isGrounded(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["isGrounded"]);
 }
Exemplo n.º 21
0
 public static string colorOfAction(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["colorOfAction"]);
 }
Exemplo n.º 22
0
 public static string alertNotImplementedYet(Language.LangList selectedLanguage)
 {
     return(texts[selectedLanguage]["alertNotImplementedYet"]);
 }