I can't seem to figure out how to add extra menu commands like load or quests on top of Luna engine demo Factory. Factory has a horizontal layout and when I try CP's Luna Status Config it makes it vertical. I want a horizontal Menu command layout and I was hoping if you guys had any idea to how I can do this..
Menu Command Layout problems [Vertical to Horizontal]
VXAce Luna Engine SupportI've moved this thread to Luna Support. Please be sure to post your threads in the correct forum next time. Thank you.
The way I do it is using the Factory demo as the Base, edit the lunatic config for the main menu to push pictures based on your selection of the index and then add the commands to cp config to match.
Yeah Im not actually good at the coding yet...still cant figure some stuff out in the luna engine.
Well, hopefully I explain this okay
In CP config add in the command that you need in the way that it tells you too. Make sure it is number 7.
Then, in the lunatic config main menu this is the section you need to find
What this is saying is when (number), which refers to the index of that menu item, so 0 is inventory for example, is selected/highlighted then load "$bitmap[Menus, 1]". This means, from folder Menus, picture called 1. The rest afterwards is to do with size and position of the picture being loaded which you can play around to see what it does later.
Copy this line
when 6; result.push(["$bitmap[Menus, 7]",[384, 15], 255, [0, -10, "bw", "bh + 3"]],)
paste it underneath itself before the end and change it to this
when 7; result.push(["$bitmap[Menus, 7]",[384, 15], 255, [0, -10, "bw", "bh + 3"]],)
This will then load your CP Config command 7 as exactly the same picture as number 6 in the same position. What i would then do is copy picture 7 from the menus folder, and call it 8. Edit it some way so you can tell the difference, and save it. Then change this bit in the line above
["$bitmap[Menus, 7]"
to
["$bitmap[Menus, 8]"
Save and play test. Let me know if you have any issues.
In CP config add in the command that you need in the way that it tells you too. Make sure it is number 7.
Then, in the lunatic config main menu this is the section you need to find
def self.user_command_text(index, contents, item_rect, enable, select)
result = []
contents.clear
if select
case index
when 0; result.push(["$bitmap[Menus, 1]", [90, 15], 255, [0, -10, "bw", "bh + 3"]],) #bitmap = ""
when 1; result.push(["$bitmap[Menus, 2]",[143, 15], 255, [0, -10, "bw", "bh"]],)
when 2; result.push(["$bitmap[Menus, 3]",[190, 15], 255, [0, -10, "bw", "bh"]],)
when 3; result.push(["$bitmap[Menus, 4]",[237, 15], 255, [0, -10, "bw", "bh"]],)
when 4; result.push(["$bitmap[Menus, 5]",[284, 15], 255, [0, -10, "bw", "bh"]],)
when 5; result.push(["$bitmap[Menus, 6]",[331, 15], 255, [0, -10, "bw", "bh"]],)
when 6; result.push(["$bitmap[Menus, 7]",[384, 15], 255, [0, -10, "bw", "bh + 3"]],)
end
x = 0
y = 0
end
result
end
result = []
contents.clear
if select
case index
when 0; result.push(["$bitmap[Menus, 1]", [90, 15], 255, [0, -10, "bw", "bh + 3"]],) #bitmap = ""
when 1; result.push(["$bitmap[Menus, 2]",[143, 15], 255, [0, -10, "bw", "bh"]],)
when 2; result.push(["$bitmap[Menus, 3]",[190, 15], 255, [0, -10, "bw", "bh"]],)
when 3; result.push(["$bitmap[Menus, 4]",[237, 15], 255, [0, -10, "bw", "bh"]],)
when 4; result.push(["$bitmap[Menus, 5]",[284, 15], 255, [0, -10, "bw", "bh"]],)
when 5; result.push(["$bitmap[Menus, 6]",[331, 15], 255, [0, -10, "bw", "bh"]],)
when 6; result.push(["$bitmap[Menus, 7]",[384, 15], 255, [0, -10, "bw", "bh + 3"]],)
end
x = 0
y = 0
end
result
end
What this is saying is when (number), which refers to the index of that menu item, so 0 is inventory for example, is selected/highlighted then load "$bitmap[Menus, 1]". This means, from folder Menus, picture called 1. The rest afterwards is to do with size and position of the picture being loaded which you can play around to see what it does later.
Copy this line
when 6; result.push(["$bitmap[Menus, 7]",[384, 15], 255, [0, -10, "bw", "bh + 3"]],)
paste it underneath itself before the end and change it to this
when 7; result.push(["$bitmap[Menus, 7]",[384, 15], 255, [0, -10, "bw", "bh + 3"]],)
This will then load your CP Config command 7 as exactly the same picture as number 6 in the same position. What i would then do is copy picture 7 from the menus folder, and call it 8. Edit it some way so you can tell the difference, and save it. Then change this bit in the line above
["$bitmap[Menus, 7]"
to
["$bitmap[Menus, 8]"
Save and play test. Let me know if you have any issues.
Original thread: https://forums.rpgmakerweb.com/threads/menu-command-layout-problems-vertical-to-horizontal.45421/