Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool AddNewPopUpSchema(string pluginName, JObject schema)
- #Allows you to call plugin to create new pop-up preset for your plugin. EXAMPLE USAGE:
- JObject popUpConfig = new JObject()
- {
- { "key", "Market" }, #<- Config Key value.
- { "anchor", "0.5 1" },
- { "name", "Legacy" },
- { "parent", "Hud.Menu" },
- { "background_enabled", true },
- { "background_color", "0.145 0.135 0.12 1" },
- { "background_fadeIn", 0.5f },
- { "background_fadeOut", 0.5f },
- { "background_offsetMax", "180 0" },
- { "background_offsetMin", "-180 -65" },
- { "background_smooth", false },
- { "background_url", "" },
- { "background_additionalObjectCount", 1 }, #<- This is value how many details is in this schema.
- { "background_detail_0_color", "0.185 0.175 0.16 1" },
- { "background_detail_0_offsetMax", "356 65" },
- { "background_detail_0_offsetMin", "4 4" },
- { "background_detail_0_smooth", false },
- { "background_detail_0_url", "" },
- { "text_anchor", "MiddleCenter" },
- { "text_color", "0.91 0.87 0.83 1" },
- { "text_fadeIn", 0.5f },
- { "text_fadeOut", 0.5f },
- { "text_font", "RobotoCondensed-Bold.ttf" },
- { "text_offsetMax", "180 0" },
- { "text_offsetMin", "-180 -65" },
- { "text_outlineColor", "0 0 0 0" },
- { "text_outlineSize", "0 0" }
- };
- PopUpAPI.Call("AddNewPopUpSchema", Name, popUpConfig);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement