Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Instead of just adding things to the menu as it is, what you are doing is overwriting the base menu function.
Line 3: Events.OnFillWorldObjectContextMenu.Remove(ISBlacksmithMenu.doBuildMenu)
You're removing the entire current menu, then replacing it with the default menu with your additions.
What this means is if your mod is loaded after another mod that adds things to the menu, your mod overwrites them. Since your lua file is called Main.lua, that means it is overwriting half the alphabet.
This is unnecessary.
You can delete lines 127-137, and just do this instead:
local menu = context:getOptionFromName(getText("ContextMenu_MetalWelding"));
if menu then
local SubMenu = context:getSubMenu(menu.subOption);
local _firstTierMenu = SubMenu:addOption(getText('ContextMenu_ToriGarageDoors'), worldobjects, nil)
would be great if it did
Describe what exactly the problem is in more detail?