Esempio n. 1
0
 private String SetModToolsDir(String dir)
 {
     if (dir != null && Directory.Exists(dir))
     {
         if (!dir.EndsWith("\\"))
         {
             dir += "\\";
         }
         Program.ModToolsDir = dir;
         UpdateModToolsLabel();
         Program.SaveSettings();
         LuaCodeHelper.ResetFileCache();
     }
     return(dir);
 }
Esempio n. 2
0
        private string GetItemText(Chunk c)
        {
            string retVal = c.GetSummary();

            if (c.Type == "scr_")
            {
                if (pcLuaCodeButton.Checked)
                {
                    retVal = LuaCodeHelper.GetCodeSummary(c);
                }
                else if (listingButton.Checked)
                {
                    retVal = LuaCodeHelper.GetLuacListing(c);
                }
                else if (decompileButton.Checked)
                {
                    retVal = LuaCodeHelper.Decompile(c);
                }
            }
            return(retVal);
        }