NicolasCPA88 Posted August 4, 2016 Share Posted August 4, 2016 I need to edit fonts.lua from a mod with really touching the lua file (fonts.lua ) I need to change this: { filename = "fonts/spirequal"..font_posfix..".zip", alias = NEWFONT, fallback = DEFAULT_FALLBACK_TABLE }, to this: { filename = "fonts/fallback_full_packed"..font_posfix..".zip", alias = NEWFONT, fallback = DEFAULT_FALLBACK_TABLE }, how can i do that on modmain.lua? NOTE: adding this do not do the work: GLOBAL.NEWFONT = "fallback_font" i need to change the file loaded completely. Link to comment Share on other sites More sharing options...
DarkXero Posted August 4, 2016 Share Posted August 4, 2016 local FONTS = GLOBAL.FONTS FONTS[8]["filename"] = string.gsub(FONTS[8]["filename"], "spirequal", "fallback_full_packed") Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now