Changes between Version 3 and Version 4 of Ticket #30, comment 14


Ignore:
Timestamp:
Mar 1, 2012, 12:51:17 PM (12 years ago)
Author:
fcxSanya

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30, comment 14

    v3 v4  
    44
    55>  * There's a graphical glitch in the tooltips: they seem to appear in the previous position before being moved. It should move first (while hidden) then appear.
    6 I started to type answer, then decided to ask Philip on IRC, he is not answered yet, so for now I will paste what I typed there:
     6I started to type answer, then decided to ask Philip on IRC, ~~he is not answered yet, so for now I will paste what I typed there~~ (see the "edit" below):
    77
    88><...>the tooltip is displayed/hided in the gui scripts and position changed in CTooltip.cpp `HandleMessage` on GUIM_MOUSE_MOTION event; as far as I understand this happens because this event passed from CGUI only to not hidden controls: `GUI<SGUIMessage>::RecurseObject(GUIRR_HIDDEN | GUIRR_GHOST, m_BaseObject, &IGUIObject::HandleMessage, msg)`; I want to pass this event also to my tooltip independently of it's visibility in less ugly way; I think less ugly solution is to add some property to CTooltip like "independent" (as opposed to tooltips managed by GUITooltip) and additional restriction to `RecurseObject` like GUIR_INDEPENDENT_TOOLTIP and add an additional call to `RecurseObject` with this restriction beside the original one
     9
     10''<Edit>''
     11
     12Philip's answer:
     13><Philip`>: fcxSanya: Maybe the tooltip can grab the current mouse position from somewhere when it's first enabled, rather than it using the MOTION event for that?
     14
     15><fcxSanya>: Philip`, in  gui scripts do you mean?
     16
     17><Philip`>: fcxSanya: In CTooltip
     18
     19><fcxSanya>: hm, I will look
     20''</Edit>''
    921
    1022Also I noticed that `GUIM_MOUSE_MOTION` passed to all tooltips (including these, which managed by the GUITooltip), so I need to add a "independent" property anyway and check it in the CTooltip's `HandleMessage` function.