cpassuel Posted June 13, 2020 Share Posted June 13, 2020 Hello, I try to use dropdown components for MCM but I can't figure out which parameters to pass at creation. There are no informations about this component in the easymcm doc (is it depreciated ?). Any example code or doc is welcome. Thanks Link to comment Share on other sites More sharing options...
Necrolesian Posted June 13, 2020 Share Posted June 13, 2020 Let There Be Darkness uses a dropdown. Link to comment Share on other sites More sharing options...
cpassuel Posted June 14, 2020 Author Share Posted June 14, 2020 (edited) Thanks a lot, Is there way to limit the width of components (like dropdown, slider,...) in MCM ? I cannot find it. For people looking how to use dropdown, Here is an example from Let There Be Darkness. You can use numbers for option values if you wish. page:createDropdown{ label = "Cell lighting value overrides. The override values are read from overrides.lua, and can be different for each cell.", options = { { label = "NONE", value = nil}, { label = "True Lights and Darkness", value = "TLaD"}, { label = "di.Still.ed Lights", value = "DL"}, }, variable = mwse.mcm.createTableVariable{ id = "useOverrides", table = config }, defaultSetting = "TLaD", } Edited June 14, 2020 by cpassuel Link to comment Share on other sites More sharing options...
Necrolesian Posted June 15, 2020 Share Posted June 15, 2020 Have you tried using the width (or widthProportional) property for regular menu elements? https://mwse.readthedocs.io/en/latest/lua/type/tes3ui/element.html I don't know if that will work, I've never tried it in the MCM. Unfortunately a lot of MCM functions are really not well documented if at all. Link to comment Share on other sites More sharing options...
cpassuel Posted June 15, 2020 Author Share Posted June 15, 2020 Yep, I tried widthProportional but it doesn't seems to work. BTW I used a SideBarPage who splits the page in two so sliders and dropdown are not too wide. Link to comment Share on other sites More sharing options...
Necrolesian Posted June 16, 2020 Share Posted June 16, 2020 Actually I was trying to change the color of an MCM element earlier. Talked with Merlord about it on discord. MCM elements are contained in self.elementsfor each component. So for me it was self.elements.info.color = tes3ui.getPalette("fatigue_color")but that's for an info component. And you may have to put it in a postCreate() function. postCreate = function(self) self.elements.whatever... end Link to comment Share on other sites More sharing options...
cpassuel Posted July 18, 2020 Author Share Posted July 18, 2020 I've seen from MWSE Journal Search and Edit than you can hide or show some parts of the menu with visible property. There are lots of good informations/example in some mod but it's not always well documented. I should check on Discord. I'm thinking about creating a lua MCM mod example with most components and config file support as a skeleton for other mods Link to comment Share on other sites More sharing options...
Recommended Posts