Jump to content

duplication of categories

Pending 2.0.25

wayofthepixel
wayofthepixel

Posted

Is there an easy way to duplicate categories? I have server rules, and want to add a category names server features. Is there a way to copy server rules, and paste as server features, and just edit the text? I want to keep the same layout, just different text presented to the player.

Mevent

Posted

5 minutes ago, wayofthepixel said:

Is there an easy way to duplicate categories? I have server rules, and want to add a category names server features. Is there a way to copy server rules, and paste as server features, and just edit the text? I want to keep the same layout, just different text presented to the player.

Hey! Yep theres a clone button built in. Give yourself serverpanel.edit, open the panel, hit the edit button in the category bar, and in the category list every category has a small blue clone icon on the right. Click it on Server Rules and youll get a full copy with all the pages and layout, then just rename it to Server Features and edit the text. One thing, change the chat command on the copy so it doesnt clash with the original, otherwise youll see an "already registered" error in console.

wayofthepixel

Posted

Thank you for the quick reply! That was so easy, I don't know how I missed it. 

I cloned the page, changed the title name, and it worked in  the editor. The menu, however, hasn't updated the name. I now have 2 categories showing the name Server Rules. Am I missing something else really easy?

serverpanel02.png

serverpanel01.png

Mevent

Posted

Ah yep, thats the localization. The button in the menu uses the localized title, and TITLE is only the fallback when theres no entry for the players language. So the clone carried over the en text "SERVER RULES". Scroll down in that same CATEGORY SETTING panel to the TITLE LOCALIZATION table and change the en row to SERVER FEATURES. If you got a ru row or others in there, change those too.
 

wayofthepixel

Posted

Perfect. Last questions. In template V2, are the colors all locked (text colors can be changed but not the scroll bar)? And is there no scroll option available for the text pages like  Rules? I'm having a hard time trying to figure out how to use the pages properly. I would rather just have a scroll option honestly

 

Thank you again for all of your help.

Mevent

Posted

1 hour ago, wayofthepixel said:

Perfect. Last questions. In template V2, are the colors all locked (text colors can be changed but not the scroll bar)? And is there no scroll option available for the text pages like  Rules? I'm having a hard time trying to figure out how to use the pages properly. I would rather just have a scroll option honestly

 

Thank you again for all of your help.

Hey! Nothing is locked, the in game editor just doesnt expose everything. The panel chrome lives in data/ServerPanel/Template.json under UI Settings. For the category bar its Categories, then Categories Scroll, then Scrollbar Settings, and you got Handle Color, Track Color, Highlight Color, Pressed Color plus size and auto hide. Reload ServerPanel after you save. On the second part, no, theres no scroll for page content, long text has to be split into pages.

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3m
Total downloads
Customers
12k
Customers served
Files Sold
169.9k
Total sales
Payments
3.7m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.