﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3A2.4%2FDoc%2FHow_to%2FAdd_a_ToolTip</id>
	<title>Dev:2.4/Doc/How to/Add a ToolTip - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Dev%3A2.4%2FDoc%2FHow_to%2FAdd_a_ToolTip"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:2.4/Doc/How_to/Add_a_ToolTip&amp;action=history"/>
	<updated>2026-06-02T09:32:15Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:2.4/Doc/How_to/Add_a_ToolTip&amp;diff=55344&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:2.4/Doc/How_to/Add_a_ToolTip&amp;diff=55344&amp;oldid=prev"/>
		<updated>2018-06-28T17:51:53Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 17:51時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Dev:2.4/Doc/How_to/Add_a_ToolTip&amp;diff=55343&amp;oldid=prev</id>
		<title>wiki&gt;Mindrones: moved Dev:Doc/How to/Add a ToolTip to Dev:2.4/Doc/How to/Add a ToolTip:&amp;#32;asked in #blendercoders, dingto stated this are 2.4</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Dev:2.4/Doc/How_to/Add_a_ToolTip&amp;diff=55343&amp;oldid=prev"/>
		<updated>2010-05-25T09:29:39Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/Dev:Doc/How_to/Add_a_ToolTip&quot; class=&quot;mw-redirect&quot; title=&quot;Dev:Doc/How to/Add a ToolTip&quot;&gt;Dev:Doc/How to/Add a ToolTip&lt;/a&gt; to &lt;a href=&quot;/Dev:2.4/Doc/How_to/Add_a_ToolTip&quot; title=&quot;Dev:2.4/Doc/How to/Add a ToolTip&quot;&gt;Dev:2.4/Doc/How to/Add a ToolTip&lt;/a&gt;: asked in #blendercoders, dingto stated this are 2.4&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Adding Button Tool Tips=&lt;br /&gt;
I always wanted to help out with Blender development but never knew where to&lt;br /&gt;
start.  I am not that great a programmer so I needed something to keep it simple.&lt;br /&gt;
I started with searching the various Blender forums at elysiun and blender.org&lt;br /&gt;
to learn what those who came before me had learned.&lt;br /&gt;
What I learned was to start small.  So in that spirit I thought I would add&lt;br /&gt;
some tooltips to the Realtime Buttons.  Here we go...&lt;br /&gt;
I fired up Blender and selected the Realtime Buttons.  I held the mouse cursor&lt;br /&gt;
over the &amp;quot;Actor&amp;quot; button and the tooltip poped up with &amp;quot;Objects that are evaluated&lt;br /&gt;
by the engine&amp;quot;.  I quickly opened a console changed into the Blender source directory&lt;br /&gt;
and entered the following (linux) command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
grep -n &amp;quot;Objects that are evaluated by the engine&amp;quot; -R *&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The console returned the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
blender/src/buttons_logic.c:2295:  &amp;quot;Objects that are evaluated by the engine &amp;quot;);&lt;br /&gt;
blender/src/buttons_logic.c:2333:  &amp;quot;Objects that are evaluated by the engine &amp;quot;);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Opening the file _buttons_logic.c_ informed me that there were two functions,&lt;br /&gt;
_buttons_enji()_, and _buttons_ketsji()_.  The name &amp;quot;ketsji&amp;quot; should be familiar from&lt;br /&gt;
browsing this section so I started at line 2333 which is in _buttons_ketsji()_.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
     uiDefButI(block, TOG|BIT|2, B_REDR, &amp;quot;Actor&amp;quot;,  10,205,75,19, &lt;br /&gt;
         &amp;amp;ob-&amp;gt;gameflag, 0, 0, 0, 0,  &amp;quot;Objects that are evaluated by the engine&amp;quot;);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And from the _BIF_interface.h_ here is the function definition:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
     uiBut '''uiDefButI(uiBlock '''block, int type, int retval, char *str, short x1, &lt;br /&gt;
          short y1, short x2, short y2, int *poin, float min, float max, &lt;br /&gt;
          float a1, float a2, char *tip);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please look [[http://www.blender.org/modules/documentation/intranet/docs/develop/ui/widgets_button.html|here]] for information on this function.  That last set of quotes&lt;br /&gt;
is where the tooltip goes.  A little search for empty quotes in this file and&lt;br /&gt;
a little caution about where and when to add a tooltip and you are on your way!  Take&lt;br /&gt;
a look at the other _buttons_*.c_ files in blender/src as well.&lt;br /&gt;
&lt;br /&gt;
PS: Join the GameEngineTeam and blenderwiki to help with these pages. :)&lt;br /&gt;
&lt;br /&gt;
-- [[DeveloperWiki/DeveloperWikiStephenHughes|DeveloperWikiStephenHughes]] - 26 Apr 2005&lt;br /&gt;
&lt;br /&gt;
[[Category:Script]]&lt;/div&gt;</summary>
		<author><name>wiki&gt;Mindrones</name></author>
		
	</entry>
</feed>