Ejemplo n.º 1
0
 /// <summary>
 /// the element in the slot that was clicked, bool for wether it was double clicked or not
 /// </summary>
 protected override void ElementClicked(int par1, bool par2)
 {
     StringTranslate.GetInstance().SetLanguage((string)Field_44013_b[par1]);
     Field_44015_a.Mc.FontRendererOld.SetUnicodeFlag(StringTranslate.GetInstance().IsUnicode());
     GuiLanguage.Func_44005_a(Field_44015_a).Language = (string)Field_44013_b[par1];
     //Field_44015_a.FontRenderer.SetBidiFlag(StringTranslate.IsBidrectional(GuiLanguage.Func_44005_a(Field_44015_a).Language));
     GuiLanguage.Func_46028_b(Field_44015_a).DisplayString = StringTranslate.GetInstance().TranslateKey("gui.done");
 }
Ejemplo n.º 2
0
        public GuiSlotLanguage(GuiLanguage par1GuiLanguage) : base(par1GuiLanguage.Mc, par1GuiLanguage.Width, par1GuiLanguage.Height, 32, (par1GuiLanguage.Height - 65) + 4, 18)
        {
            Field_44015_a = par1GuiLanguage;
            Field_44014_c = StringTranslate.GetInstance().GetLanguageList();
            Field_44013_b = new List <string>();
            string s;

            for (IEnumerator <string> iterator = Field_44014_c.Keys.GetEnumerator(); iterator.MoveNext(); Field_44013_b.Add(s))
            {
                s = iterator.Current;
            }
        }
Ejemplo n.º 3
0
 public static GuiSmallButton Func_46028_b(GuiLanguage par0GuiLanguage)
 {
     return(par0GuiLanguage.DoneButton);
 }
Ejemplo n.º 4
0
 public static GameSettings Func_44005_a(GuiLanguage par0GuiLanguage)
 {
     return(par0GuiLanguage.Field_44006_d);
 }