[1.3.0] UI Mod - Bigger fonts, ambient sound toggle, etc.
Moderator: Moderator
[1.3.0] UI Mod - Bigger fonts, ambient sound toggle, etc.
v3.7.0 *** FOR ToME v1.3.0+ ONLY ***
If you are using an older version of ToME, visit http://te4.org/games/addons/tome/marson-ui and choose an earlier version of this addon.
An attempt to make 1920x1080 easier on my decaying eyesight, plus a few personal preferences. This is a revamp for the Minimalist UI. It may work for Classic, but hasn't been tested for it. Most settings can be found on the UI tab on the Game Options screen.
• Adds a 'Fonts' tab to 'Game Options'. Choose separate font styles and sizes for six categories:
* menus & dialogs
* HUD elements
* tooltips & character sheet
* chat & combat log
* flying text
* lore
• Expanded font size range to 8 - 36 points. (Stock range is 10 - 18)
• Ability to add your own fonts with a fontpack addon.
http://te4.org/games/addons/tome/font_example
• Scales most dialog boxes to account for larger fonts.
• Hotkey bar revamp:
* Frame colors: green = activated talent, blue = sustained talent, yellow = equipped item, orange = unequipped item. Colors on talent screen and buff bar changed to match.
* Frame colors do not change when on cooldown.
* All talents/items on cooldown will have a red overlay.
* Z-layer of key text (C8, etc) moved under color overlay to better differentiate from cooldown text.
* Unequipped items get pale yellow color overlay similar to cooldown overlay.
* Right-clicking on an item no longer clears the item; it brings up the hotkey assignment menu. (You may clear it from there, as with talents.)
• 'Use Talent' screen now also lists all usable items, allowing you to associate a hotkey using the dropdown menu. Objects are separated based on whether they are worn or not and display their current cooldowns.
• When assigning a hotkey, the list will show available hotkeys as 1 through 0,-,= with C,S,A,AS, modifiers (example: "Hotkey C7") instead of "Hotkey 1" through "Hotkey 60", so as to match the labels on the hotkey bar.
• Enabled and modified 'Creature List' code that was in stock ToME but not used. Lists NPCs in player's sight along with their remaining energy and distance. Mousing over an NPC in the Creature List will center the screen on that creature. Toggle the list on/off with Ctrl-Tab.
• 'Limit Terrain Height' option will rescale trees and mushrooms to prevent them from overlapping the grid above them. (Will not affect current level until you leave and return.)
• Adds viewport options: 'Original' is the stock behavior from v1.1.5 ToME. The game will use Scroll Distance, but won't show a black border around the map. With a high Scroll Distance, you will remain centered until you get to the edge of the map, at which point the map stops moving and your character moves off-center. 'No Hiding' is now the stock behavior of v1.2.x ToME. It is a bit of a hybrid. The map will scroll similar to 1.1.5, but will show enough of a black border so that your avatar will not hide under UI elements such as the mini-map and hotkey bar. 'Centered' will force the viewport to strictly follow the Scroll Distance setting. If you have it a high number, you will be centered 100% of the time.
• Adds option to enable right-click dragging of the viewport. This will coexist with mouse gestures but may not mix with them in a visually pleasing manner.
• Separate adjustable background transparencies for dialogs, tooltips, combat log, chat, and hotkeys.
• Adjustable tooltip width.
• Ability to change tooltip location: each of the four corners / at mouse cursor / opposite corner from mouse.
• Tooltip will get out of the way of target location via keyboard as well as mouse cursor.
• Ability to disable ambient background noises (dogs barking, water dripping, etc.) on the UI tab in Game Options. Defaults to 'enabled' (no change from stock).
• Shields (damage, temporal, etc.) will play a sound when they expire on a character you are controlling. (I've missed that my antimagic shield went down one too many times.) I've included a couple versions of the sound, including silence.
(shield_off.ogg created by reg7783 and licensed under the Creative Commons 0 License.)
• Adds a choice of tooltip style for the Inventory screen. 'Original' is the same as stock. 'Small Screen' moves the tooltip to either side of the screen so that it obscures less and doesn't bounce around. 'Big Screen' uses a dedicated location between the rag doll and the item list.
• If your character knows the talent 'Extract Gems', a tab will appear on the inventory screen listing all items that may be converted to gems based on your current talent level, including items in the Transmogrification Chest.
• Adds a 'Usable Items' tab to the Inventory screen.
• Adds a 'Preview Talents' button to the character creation screen. This will allow you to view the stats and talents of the current race/class combo without needing to generate a new game.
• Character creation screen will remind you if you are in dev/cheat mode.
• Ability to ESC from character creation screen.
• Alchemist quest shows details about the various rewards you are working towards: "Agrimley the hermit needs your help making an Elixir of Explosive Force, which permanently increase your chance to critically strike with spells by 4%." This will only apply to characters who take the quest after enabling this addon.
(Also available as separate addon.)
• ToME Bugfix: 'Tactical Overlay' dropdown menu.
+ ToME v1.3.0 compatible.
+ Integrated 0player's NPC List speed performance fix.
+ Added frame highlights when mousing over or dragging a hotkey.
http://te4.org/games/addons/tome/marson-ui
Overloads:
data/gfx/metal-ui/bar_title_left.png
data/gfx/metal-ui/bar_title_middle.png
data/gfx/metal-ui/bar_title_right.png
data/gfx/metal-ui/title_dialogframe_7.png
data/gfx/metal-ui/title_dialogframe_8.png
data/gfx/metal-ui/title_dialogframe_9.png
data/gfx/metal-ui/inven_tabs/alchemy.png *
data/gfx/steam-ui/title_dialogframeM_7.png *
data/gfx/steam-ui/title_dialogframeM_8.png *
data/gfx/steam-ui/title_dialogframeM_9.png *
data/quests/brotherhood-of-alchemists.lua
data/talents/gifts/antimagic.lua
data/zones/town-derth/zone.lua
engine/ActorsSeenDisplayMin.lua *
engine/Birther.lua
engine/FlyingText.lua
engine/HotkeysIconsDisplay.lua
engine/Map.lua
engine/Tooltip.lua
engine/dialogs/ShowErrorStack.lua
engine/dialogs/Talkbox.lua
engine/interface/ActorTemporaryEffects.lua
engine/interface/GameTargeting.lua
engine/interface/PlayerMouse.lua
engine/ui/Dialog.lua
engine/ui/EquipDollFrame.lua
engine/ui/FontList.lua *
engine/ui/Inventory.lua
engine/ui/Textzone
mod/class/Game.lua
mod/class/Grid.lua
mod/class/uiset/Minimalist.lua
mod/dialogs/Birther.lua
mod/dialogs/CharacterSheet.lua
mod/dialogs/GameOptions.lua
mod/dialogs/LevelupDialog.lua
mod/dialogs/ShowEquipInven.lua
mod/dialogs/ShowStore.lua
mod/dialogs/UberTalent.lua
mod/dialogs/UseItemDialog.lua
mod/dialogs/UseTalents.lua
mod/dialogs/elements/TalentTrees.lua
engine.UserChat:resize() (in hooks/load.lua)
* new file created for UI Mod
A number of new files are also added to data/font/ and data/sound/talents/
----------------------
Roadmap (Wandering-in-Left-Field Map?)
Bugfix: Fix tooltip consistency in Chat (item mouseover).
Feature: Display information on current infusion when choosing a new one to replace it.
Feature: Move Agrimley's western spawn point one block northeast so that autoexplore can discover the full map and not bump into him over and over.
Option: Display shield resource bar so as not to obscure the health bar.
Option: Add a verify dialog for escort rewards.
Option: On level generation, place escorts before other party members.
Major Update: Boot module that brings font scaling to the initial menu system.
Option: Display log/error info while starting a saved/new game.
Feature: Allow return to main menu from a locked-up load screen.
(I've already tried these last two items. They will probably require a source code change, not an addon, but I may find a solution.)
These are in no particular order and there's no guarantee that any item will make it in, as I don't know how feasible they all are.
If you are using an older version of ToME, visit http://te4.org/games/addons/tome/marson-ui and choose an earlier version of this addon.
An attempt to make 1920x1080 easier on my decaying eyesight, plus a few personal preferences. This is a revamp for the Minimalist UI. It may work for Classic, but hasn't been tested for it. Most settings can be found on the UI tab on the Game Options screen.
• Adds a 'Fonts' tab to 'Game Options'. Choose separate font styles and sizes for six categories:
* menus & dialogs
* HUD elements
* tooltips & character sheet
* chat & combat log
* flying text
* lore
• Expanded font size range to 8 - 36 points. (Stock range is 10 - 18)
• Ability to add your own fonts with a fontpack addon.
http://te4.org/games/addons/tome/font_example
• Scales most dialog boxes to account for larger fonts.
• Hotkey bar revamp:
* Frame colors: green = activated talent, blue = sustained talent, yellow = equipped item, orange = unequipped item. Colors on talent screen and buff bar changed to match.
* Frame colors do not change when on cooldown.
* All talents/items on cooldown will have a red overlay.
* Z-layer of key text (C8, etc) moved under color overlay to better differentiate from cooldown text.
* Unequipped items get pale yellow color overlay similar to cooldown overlay.
* Right-clicking on an item no longer clears the item; it brings up the hotkey assignment menu. (You may clear it from there, as with talents.)
• 'Use Talent' screen now also lists all usable items, allowing you to associate a hotkey using the dropdown menu. Objects are separated based on whether they are worn or not and display their current cooldowns.
• When assigning a hotkey, the list will show available hotkeys as 1 through 0,-,= with C,S,A,AS, modifiers (example: "Hotkey C7") instead of "Hotkey 1" through "Hotkey 60", so as to match the labels on the hotkey bar.
• Enabled and modified 'Creature List' code that was in stock ToME but not used. Lists NPCs in player's sight along with their remaining energy and distance. Mousing over an NPC in the Creature List will center the screen on that creature. Toggle the list on/off with Ctrl-Tab.
• 'Limit Terrain Height' option will rescale trees and mushrooms to prevent them from overlapping the grid above them. (Will not affect current level until you leave and return.)
• Adds viewport options: 'Original' is the stock behavior from v1.1.5 ToME. The game will use Scroll Distance, but won't show a black border around the map. With a high Scroll Distance, you will remain centered until you get to the edge of the map, at which point the map stops moving and your character moves off-center. 'No Hiding' is now the stock behavior of v1.2.x ToME. It is a bit of a hybrid. The map will scroll similar to 1.1.5, but will show enough of a black border so that your avatar will not hide under UI elements such as the mini-map and hotkey bar. 'Centered' will force the viewport to strictly follow the Scroll Distance setting. If you have it a high number, you will be centered 100% of the time.
• Adds option to enable right-click dragging of the viewport. This will coexist with mouse gestures but may not mix with them in a visually pleasing manner.
• Separate adjustable background transparencies for dialogs, tooltips, combat log, chat, and hotkeys.
• Adjustable tooltip width.
• Ability to change tooltip location: each of the four corners / at mouse cursor / opposite corner from mouse.
• Tooltip will get out of the way of target location via keyboard as well as mouse cursor.
• Ability to disable ambient background noises (dogs barking, water dripping, etc.) on the UI tab in Game Options. Defaults to 'enabled' (no change from stock).
• Shields (damage, temporal, etc.) will play a sound when they expire on a character you are controlling. (I've missed that my antimagic shield went down one too many times.) I've included a couple versions of the sound, including silence.
(shield_off.ogg created by reg7783 and licensed under the Creative Commons 0 License.)
• Adds a choice of tooltip style for the Inventory screen. 'Original' is the same as stock. 'Small Screen' moves the tooltip to either side of the screen so that it obscures less and doesn't bounce around. 'Big Screen' uses a dedicated location between the rag doll and the item list.
• If your character knows the talent 'Extract Gems', a tab will appear on the inventory screen listing all items that may be converted to gems based on your current talent level, including items in the Transmogrification Chest.
• Adds a 'Usable Items' tab to the Inventory screen.
• Adds a 'Preview Talents' button to the character creation screen. This will allow you to view the stats and talents of the current race/class combo without needing to generate a new game.
• Character creation screen will remind you if you are in dev/cheat mode.
• Ability to ESC from character creation screen.
• Alchemist quest shows details about the various rewards you are working towards: "Agrimley the hermit needs your help making an Elixir of Explosive Force, which permanently increase your chance to critically strike with spells by 4%." This will only apply to characters who take the quest after enabling this addon.
(Also available as separate addon.)
• ToME Bugfix: 'Tactical Overlay' dropdown menu.
+ ToME v1.3.0 compatible.
+ Integrated 0player's NPC List speed performance fix.
+ Added frame highlights when mousing over or dragging a hotkey.
http://te4.org/games/addons/tome/marson-ui
Overloads:
data/gfx/metal-ui/bar_title_left.png
data/gfx/metal-ui/bar_title_middle.png
data/gfx/metal-ui/bar_title_right.png
data/gfx/metal-ui/title_dialogframe_7.png
data/gfx/metal-ui/title_dialogframe_8.png
data/gfx/metal-ui/title_dialogframe_9.png
data/gfx/metal-ui/inven_tabs/alchemy.png *
data/gfx/steam-ui/title_dialogframeM_7.png *
data/gfx/steam-ui/title_dialogframeM_8.png *
data/gfx/steam-ui/title_dialogframeM_9.png *
data/quests/brotherhood-of-alchemists.lua
data/talents/gifts/antimagic.lua
data/zones/town-derth/zone.lua
engine/ActorsSeenDisplayMin.lua *
engine/Birther.lua
engine/FlyingText.lua
engine/HotkeysIconsDisplay.lua
engine/Map.lua
engine/Tooltip.lua
engine/dialogs/ShowErrorStack.lua
engine/dialogs/Talkbox.lua
engine/interface/ActorTemporaryEffects.lua
engine/interface/GameTargeting.lua
engine/interface/PlayerMouse.lua
engine/ui/Dialog.lua
engine/ui/EquipDollFrame.lua
engine/ui/FontList.lua *
engine/ui/Inventory.lua
engine/ui/Textzone
mod/class/Game.lua
mod/class/Grid.lua
mod/class/uiset/Minimalist.lua
mod/dialogs/Birther.lua
mod/dialogs/CharacterSheet.lua
mod/dialogs/GameOptions.lua
mod/dialogs/LevelupDialog.lua
mod/dialogs/ShowEquipInven.lua
mod/dialogs/ShowStore.lua
mod/dialogs/UberTalent.lua
mod/dialogs/UseItemDialog.lua
mod/dialogs/UseTalents.lua
mod/dialogs/elements/TalentTrees.lua
engine.UserChat:resize() (in hooks/load.lua)
* new file created for UI Mod
A number of new files are also added to data/font/ and data/sound/talents/
----------------------
Roadmap (Wandering-in-Left-Field Map?)
Bugfix: Fix tooltip consistency in Chat (item mouseover).
Feature: Display information on current infusion when choosing a new one to replace it.
Feature: Move Agrimley's western spawn point one block northeast so that autoexplore can discover the full map and not bump into him over and over.
Option: Display shield resource bar so as not to obscure the health bar.
Option: Add a verify dialog for escort rewards.
Option: On level generation, place escorts before other party members.
Major Update: Boot module that brings font scaling to the initial menu system.
Option: Display log/error info while starting a saved/new game.
Feature: Allow return to main menu from a locked-up load screen.
(I've already tried these last two items. They will probably require a source code change, not an addon, but I may find a solution.)
These are in no particular order and there's no guarantee that any item will make it in, as I don't know how feasible they all are.
Last edited by Marson on Thu Mar 19, 2015 6:58 pm, edited 47 times in total.
Re: [1.1.5] Bigger fonts, ambient sound toggle, etc.
Made a few more changes. Most of the dialogs should handle the larger fonts without getting cramped.
Re: [1.1.5] Bigger fonts, ambient sound toggle, etc.
I've added screenshots to the Steam Workshop.
http://steamcommunity.com/sharedfiles/f ... =213669884
http://steamcommunity.com/sharedfiles/f ... =213669884
Re: [1.1.5] Bigger fonts, ambient sound toggle, etc.
Dialog and tooltip transparency can now be disabled as an option thanks to an assist from darkgod.
-
- Sher'Tul Godslayer
- Posts: 2402
- Joined: Tue Jun 18, 2013 10:46 pm
- Location: Ambush!
Re: [1.1.5] Bigger fonts, ambient sound toggle, etc.
Looks like a great addon, so I subscribed, and now I can't start a new game.
Here's the end of my log:
Here's the end of my log:
Code: Select all
Binding addon Marson's UI Modifications /addons/tome-marson-ui.teaa tome-marson-ui-1.1.5
* with overload
Lua Error: /hooks/marson-ui/load.lua:91: attempt to index field 'fonts' (a nil value)
At [C]:-1 __index
At /hooks/marson-ui/load.lua:91
At [C]:-1 dofile
At /engine/Module.lua:480 loadAddons
At /engine/Module.lua:767 instanciate
At /engine/utils.lua:1902 showMainMenu
At /engine/init.lua:153
At [C]:-1 dofile
At /loader/init.lua:196
[ENGINE] Setting requested FPS to 2 (500 ms)
Re: [1.1.5] Bigger fonts, ambient sound toggle, etc.
Thanks for the feedback. I thought that config.settings.tome.fonts.type always existed, but should have put a check for nil in anyway just to be safe. I was taking "just one more look before bed", but will test a fix in the morning. In the mean time, you can look to see if E:\Users\[username]\T-Engine\4.0\settings\tome.fonts.cfg exists and make sure it has an entry similar to
That's hopefully a stop-gap. Or load an existing character and change the font in Game Options. You should be able to change it back to Basic afterwards, if that's what you are using.
Code: Select all
tome.fonts = { type = "fantasy", size = "big" }
-
- Sher'Tul Godslayer
- Posts: 2402
- Joined: Tue Jun 18, 2013 10:46 pm
- Location: Ambush!
Re: [1.1.5] Bigger fonts, ambient sound toggle, etc.
There was no such file on my system, let me try the work-around...Marson wrote:see if E:\Users\[username]\T-Engine\4.0\settings\tome.fonts.cfg exists and make sure it has an entry similar toCode: Select all
tome.fonts = { type = "fantasy", size = "big" }
Worked! Thanks!
Re: [1.1.5] Bigger fonts, ambient sound toggle, etc.
It looks like that file is never created if you don't change the font type or size from default. Since that was one of the first things I did, I never noticed. And it looks like my addon code in hooks/load.lua is running before the no-file defaults get assigned in ToME.
Thanks for letting me know. Should be loading now without needing the work-around.
Thanks for letting me know. Should be loading now without needing the work-around.
Re: [1.1.5] Bigger fonts, ambient sound toggle, etc.
A player let me know that my latest version would disable the tooltip transparency, but not the for the dialogs. Is anyone else having this problem? I haven't been able to replicate it yet.
-
- Sher'Tul Godslayer
- Posts: 2402
- Joined: Tue Jun 18, 2013 10:46 pm
- Location: Ambush!
Re: [1.1.5] Bigger fonts, ambient sound toggle, etc.
I noticed that the Prodigies window does not always fit on the screen. With the font set to Normal, I can see part of the leftmost column (Strength prodigies), but at larger font settings I cannot see that column at all.
To check this out, you can access the Prodigies screen any time during level up, even if none are available.
To check this out, you can access the Prodigies screen any time during level up, even if none are available.
Re: [1.1.5] Bigger fonts, ambient sound toggle, etc.
What resolution are you running? On 1920x1080 and "Biggest" font, I can see all six columns. The dialog is actually narrower than the Level-up screen for me.
Re: [1.1.5] Bigger fonts, ambient sound toggle, etc.
Normally a large map will always border the edge of the screen even if you have the UI set to stay centered on your character. I tweaked it so that you still get a fairly full map display when your toon is at the very edge, but there will be a black border based on the size of your UI elements. You shouldn't find your character sitting under the hotkey bar anymore.
-
- Sher'Tul Godslayer
- Posts: 2402
- Joined: Tue Jun 18, 2013 10:46 pm
- Location: Ambush!
Re: [1.1.5] Bigger fonts, ambient sound toggle, etc.
1280 x 844 on my laptop right now.Marson wrote:What resolution are you running? On 1920x1080 and "Biggest" font, I can see all six columns. The dialog is actually narrower than the Level-up screen for me.
Re: [1.1.5] Bigger fonts, ambient sound toggle, etc.
I mainly intended this for 1920x1080 or therabouts, but seeing as I've gotten it pretty close to where it works well for me, I can start adjusting it for other cases. Overall, it's not as bad I thought it would be at 1280. Prodigies was an easy fix, but I'm guessing the changes I made to the Inventory screen are pretty annoying for you right now. I put in a check so that it doesn't change from stock unless at a width of more than 1600 pixels. I've also added font scaling to the Character Sheet, so that should look better as well.
Re: [1.1.5] Bigger fonts, ambient sound toggle, etc.
Doctornull, have you tried disabling the dialog transparency? Did it work for you?