Method Library v1.05
A method library that intends to add new or restore callable methods for manipulating game data. It currently contains four methods that can be called from lua.
Features
MethodLibrary.mesh_set_materials_enable(RenderMesh, idx, bool)- Set a prefab’s path:
MethodLibrary.prefab_set_path(pfb, path) - Set Color Correction Linear Parameters:
MethodLibrary.ColorCorrect_set_linear_param(ColorCorrect, idx, CorrectorType, x, y, z, w) - Set a
via.gui.Textmessage:MethodLibrary.gui_text_set_message_simplified(via.gui.Text, managed string)
Notes
- You should create a managed string for the path without adding a reference, using
add_ref()oradd_ref_permanent(); this method does that anyway. - The first argument is a
via.render.LDRColorCorrecttype.indexis a slot from 0 to 7 to modify.CorrectorTypeis an enum for the type of linear parameter:None = 0,Hue = 1,Chroma = 2,Brightness = 3,Sepia = 4,Scale = 5,NegaPosi = 6,GrayScale = 7,RedReplace = 8,GreenReplace = 9,BlueReplace = 10,Add = 11,Sub = 12,Max = 13. The last argument is a series of floats that comprise a Vec4.
Installation
- Install manually by extracting the
reframeworkfolder to your base game directory. - Alternatively, use fluffy mod manager.





