Exemple #1
0
 private void luaCodeEditor_ToolTipNeeded(object sender, FastColoredTextBoxNS.ToolTipNeededEventArgs e)
 {
     if (!string.IsNullOrEmpty(e.HoveredWord))
     {
         if (pico8help.ContainsKey(e.HoveredWord))
         {
             Pico8ApiHelp help = pico8help[e.HoveredWord];
             e.ToolTipTitle = help.Code;
             e.ToolTipText  = help.Description;
         }
     }
 }
        private void txtNewInfo_ToolTipNeeded(object sender, FastColoredTextBoxNS.ToolTipNeededEventArgs e)
        {
            var block = txtNewInfo.CodeBlockAt(e.Place);

            if (block is VisualizerHelper.InstructionOpCodeCodeBlock)
            {
                ILInstruction instruction = (ILInstruction)((VisualizerHelper.InstructionOpCodeCodeBlock)block).Tag;

                e.ToolTipTitle = instruction.Code.ToString();
                e.ToolTipText  = instruction.Code.ToDescription();
            }
        }