The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Auto Tooltip
Author Message
Oxtar
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jul 2012
Reputation: 0



Post: #1
Auto Tooltip
Well i've been fighting with the new clients for a couple days.

Older versions required you to click a player/item/deco to show it's name.

Now just by hovering it, it display itself automatically.

What i am wondering is this, is it possible to turn off that feature or is it hardcoded into the client?

OR is it possible to use this feature only on items?

OR If it has to stay as it is, what are the ways to alter the character names with that hovering tooltip?
12-13-2012 08:50 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Auto Tooltip
It's a tooltip that can be turned off in the sphere.ini if you wish

I beleive it's this one:

// FEATURE_AOS_UPDATE_B 02 // Tooltip, Fightbook, Necro/paladin on creation, Single/Six char selection screen, Skills, Newer spellbook support


so the line

FeatureAOS =

should not include the number 02

Unfortunately it's either on or off that way.

You could add an event on players so that it is cancelled out for players/NPC's

Code:
ON=@ClientToolTip
if (<ischar>)
  return 1
endif
untested code ^

[Image: 2nis46r.jpg]
(This post was last modified: 12-13-2012 09:17 AM by Mordaunt.)
12-13-2012 09:13 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Oxtar
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jul 2012
Reputation: 0



Post: #3
RE: Auto Tooltip
I already tried removing that option into the Sphere.ini file.

It didn't stop UO for firing the Tooltip.

Gonna test it manually from a script.

I'll keep in touch.

EDIT :

It still pop-up. Tried with ClientTooltip and CharClientToolip. I think it comes from the UO Client itself, not a sphere action. Using 7.0.23.1 at the moment.
(This post was last modified: 12-13-2012 11:21 AM by Oxtar.)
12-13-2012 11:03 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Auto Tooltip
If that AOS feature is not enabled, tooltips will not work at all.

However if you're wanting to keep them but only on items, try what I posted

[Image: 2nis46r.jpg]
12-13-2012 11:17 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Oxtar
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jul 2012
Reputation: 0



Post: #5
RE: Auto Tooltip
It seems you were right.

I was wondering why my name wasn't changed after .set name bleh

It kept showing my original name.

Reloged, and it don't prompt anymore.

Thanks Mordaunt.

Btw, what are cliloc? (addcliloc) i never used them in lower versions of sphere. Are there any documentation about those? What are their main purpose?
12-13-2012 11:28 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: Auto Tooltip
cliloc is where the text displayed in tooltips are defined. Many of them are set and cannot be altered, there are some however which will accept custom text and can be used in conjunction with other "clilocs" to create a more complex tooltip or on their own.

e.g.

Code:
ON=@ClientToolTip
   src.addcliloc 1070722, this cliloc is empty and will accept whatever test you put in after the comma
   src.addcliloc 1061639, <BFONT_RED>by using font data foung in sphere_defs.scp you can als change the color of the text

You can only use a number once in each tooltip, the 2 listed there are both empty thus allowing for 2 lines editable to your text completely.
If you need a third, 1061640 is also blank

Unfortunately the wiki page for ADDCLILOC has not yet been created

[Image: 2nis46r.jpg]
(This post was last modified: 12-13-2012 11:40 AM by Mordaunt.)
12-13-2012 11:35 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Oxtar
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jul 2012
Reputation: 0



Post: #7
RE: Auto Tooltip
Thanks, it clears out some questions i had in mind.

Well, i came across another problem which is indirectly related to the Tooltip.

With the version i'm using, when i click myself or a NPC, it brings up a menu(for myself it brings up Open Paperdoll or Open Backpack, and NPC's it brings up Buy, Sell, etc)

I tried altering it with @Click and @CharClick.

I wish to make it stop like it did for the player Tooltip.

Maybe i'm using the wrong ON=@something...

EDIT :

And yeah i know @Click wouldn't have worked. lol.
(This post was last modified: 12-13-2012 11:46 AM by Oxtar.)
12-13-2012 11:41 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #8
RE: Auto Tooltip
That is a context menu, not a tool tip:

http://wiki.sphere.torfo.org/index.php?t...enuRequest

SRC.AddContextEntry EntryTag,TextID,Flags,Color
EntryTag - the number to return as ARGN by @(item)ContextMenuSelect. Make it unique.
- EntryTags from 0 to 100 are reserved by Sphere for internal use, so do not
use it.
TextID - CLILOCed name of the button. The number from cliloc.[your_localization]
WITHOUT the leading "300" or such! Just type "5194" or "11010"
Flags - 01 - locked (will be grayed out)
- 02 - consecutive entries with this flag set will be summarized under
a golden arrow
- 020 - can be colored
Color (applied only if Flags & 020) - hue

[Image: 2nis46r.jpg]
12-13-2012 11:46 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Oxtar
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jul 2012
Reputation: 0



Post: #9
RE: Auto Tooltip
Bite me...

Lol gotta get used to new features huh?

Thanks Mordaunt (again) Shifty
12-13-2012 11:50 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #10
RE: Auto Tooltip
Yeah, but some of the new features are really nice once you get into them

[Image: 2nis46r.jpg]
12-13-2012 12:06 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)