Onyx wrote:Hi,
Maybe you research this? https://github.com/VanessaE/dreambuilde ... 4dca647bc0
I hope this will help you. : )
ShadMOrdre wrote:Tumeni,
Can you search the mods folder for the 'sethotbarsize' command? Alternatively, you could use the mods command in the client to find out the name of the mod that provides that command.
Unfortunately for me, Dreambuilder is to heavy to run on my machines.
Hope that helps...
minetest.register_on_joinplayer(function(player)
player:hud_set_hotbar_itemcount(23)
player:hud_set_hotbar_image("custom_hotbar.png")
player:hud_set_hotbar_selected_image("custom_hotbar_selected.png")
end)
Napiophelios wrote:you must change the image names to whatever you use.Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_on_joinplayer(function(player)
player:hud_set_hotbar_itemcount(23)
player:hud_set_hotbar_image("custom_hotbar.png")
player:hud_set_hotbar_selected_image("custom_hotbar_selected.png")
end)
Napiophelios wrote:yeah that image from your TP is the name that goes in the code above.
If you dont want it to change every time you update the Minetest Game,
Then create a mod folder..call it whatever you want,
and put the above code in an init.lua file with a depends.text
create another folder called textures and place your custom image there
...doesnt matter if its duplicated in your TP
..best to use normal naming convention though.
example: "hugehotbar" mod then--> hugehotbar_custom_hb.png
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)
azekill_DIABLO wrote:more than 23 and it leaves the screen.
+ Spoiler
Napiophelios wrote:It would be best to use a unique name for your texture.
If you ever experiment with other Texture packs,
you wont have to worry about any hiccups.
it also allows you to have a default sized hotbar texture available
if you ever experiment with servers that use a different hotbar size
(as most of them use default)
azekill_DIABLO wrote:more than 23 and it leaves the screen.
+ Spoiler
yyt16384 wrote:azekill_DIABLO wrote:more than 23 and it leaves the screen.
+ Spoiler
That depends on your screen size... For me there is enough room for 24.
Also, the engine will draw hotbar in two rows if screen is not wide enough. The texture will be broken, though.
TumeniNodes wrote:Is there a way to make this mod call for gui_hotbar & gui_hotbar_selected, but then have the images depend on which TP is in use?
Napiophelios wrote:You can use whatever name you want but if you use the default texture names used by Minetest game, then your texture pack is the only one that will function without problems... unless there are other texture packs that include a 23 slot hotbar texture.
Also the code is from a very old version of Carbon game by Calinou; I think.
Users browsing this forum: Google [Bot] and 25 guests