Important Notice: Effective immediately, all support will be handled through Discord. Read more about the changes coming to Anodyne's services.

[MOD] Nova2 Colors in Rank Selectboxes

A place to show off (and others to download) completed MODs. Note: support for MODs is handled by third parties, not Anodyne Productions.

mooeypoo Tue Feb 21, 2012 2:47 am

[MOD] Nova2 Colors in Rank Selectboxes

It always drove me crazy that I need to manually try out the different ranks in the selectboxes when creating and updating a character.

To solve that, I created a very very small mod that adds a background color to the rank selectboxes.
Please note that the mod folder has "titan" for the template, but it works in ANY template. Just follow the instructions in the readme file and put the css in your template.
You can also add more styles/colors and change the color definitions in the css file. Again, read the README, it's all there.

The mod is here: https://github.com/mooeypoo/Nova2-Mod-- ... nk-Selects


If you have any special requests, or if it doesn't fit your ranksets, please let me know here or in the issues. If I see there's a big demand for this, I'll transform it to a big more robust mod that works with the rankset control panel in the back end rather than the somewhat cheater'y fix I made with reading the first letter of the rank images.

Enjoy it!

~mooey
Find my Nova MODs: https://github.com/mooeypoo
User avatar

Posts: 247


Captain Timor Belar Tue Feb 21, 2012 5:28 am

Re: [MOD] Nova2 Colors in Rank Selectboxes

Hi Mooey,

Just tried this mod on the Ship 2 skin and had no luck :P

Any ideas since the admin/css folder didnt have a admin.css file.

Posts: 33


mooeypoo Tue Feb 21, 2012 10:35 am

Re: [MOD] Nova2 Colors in Rank Selectboxes

The contents of admin.css should go into SOME active css file in your template, in the admin section. Can you tell me the list of css files in the views/[template]/admin/css folder?
Find my Nova MODs: https://github.com/mooeypoo
User avatar

Posts: 247


mooeypoo Wed Feb 22, 2012 5:29 pm

Re: [MOD] Nova2 Colors in Rank Selectboxes

Any news, Timor? I can help, but I need to know which CSS files there are in your template....?
Find my Nova MODs: https://github.com/mooeypoo
User avatar

Posts: 247


Captain Timor Belar Fri Feb 24, 2012 6:09 am

Re: [MOD] Nova2 Colors in Rank Selectboxes

Sorry must not have selected the ticky box for replies.

The CSS Files are as follows:

admin.css
jquery.chosen.css
jquery.ui.tabs.css
jquery.ui.theme.css
main.css
skin.css
structure.css

Not sure if it is worth mentioning but the skin I am using the Ship 2 located in this topic here >> viewtopic.php?f=61&t=3478

Posts: 33


mooeypoo Fri Feb 24, 2012 8:17 am

Re: [MOD] Nova2 Colors in Rank Selectboxes

Okay I took a look at the template.

Go to "skin.css". Go all the way to the bottom. Paste ths in:

Code: Select all
.modsel_r { background-color: #910b0b; color: #ffffff; }
.modsel_y { background-color: #e0ca06; color: #000000; }
.modsel_g { background-color: #eacf00; color: #000000; }
.modsel_t { background-color: #107772; color: #ffffff; }
.modsel_s { background-color: #bcbcbc; color: #000000; }
.modsel_v { background-color: #B116C3; color: #ffffff; }
.modsel_g { background-color: #045700; color: #ffffff; }
.modsel_c { background-color: #246EBE; color: #000000; }
.modsel_w { background-color: #ffffff; color: #000000; }


That's the contents of the css in the mod.

This should work.

~mooey
Find my Nova MODs: https://github.com/mooeypoo
User avatar

Posts: 247


Captain Timor Belar Fri Feb 24, 2012 10:53 am

Re: [MOD] Nova2 Colors in Rank Selectboxes

Thanks Mooey, your awesome!! *big hugs*

Posts: 33


mooeypoo Fri Feb 24, 2012 11:02 am

User avatar

Posts: 247


baritonejp Fri Feb 24, 2012 9:46 pm

Re: [MOD] Nova2 Colors in Rank Selectboxes

I used an @import in the main.css file ...
Thank you for helping,
Jamey

Posts: 16


mooeypoo Fri Feb 24, 2012 10:52 pm

Re: [MOD] Nova2 Colors in Rank Selectboxes

That works too :)

In general, the css code needs to be in the main portion of the site, so either add it to an active css page or add the admin.css file and add an @import.

~mooey
Find my Nova MODs: https://github.com/mooeypoo
User avatar

Posts: 247


LadyBird Thu Mar 22, 2012 7:44 pm

Re: [MOD] Nova2 Colors in Rank Selectboxes

I did both of those fixes for the Ship 2 skin and couldn't get it. I then tried it in Karma Sinclair's skin based on the Titan 1 skin. Couldn't get it to work on either of those either. Any ideas what I'm doing wrong?
User avatar

Posts: 297


LadyBird Sun Apr 08, 2012 8:43 pm

Re: [MOD] Nova2 Colors in Rank Selectboxes

I've done the @import and it didn't work. I then added this to the bottom of the skin.css file for both admin and main sections and it still didn't work. What do I try next?

/*
|---------------------------------------------------------------
| Rank Select Boxes
|---------------------------------------------------------------
*/

.modsel_r { background-color: #910b0b; color: #ffffff; }
.modsel_y { background-color: #e0ca06; color: #000000; }
.modsel_g { background-color: #eacf00; color: #000000; }
.modsel_t { background-color: #107772; color: #ffffff; }
.modsel_s { background-color: #bcbcbc; color: #000000; }
.modsel_v { background-color: #B116C3; color: #ffffff; }
.modsel_g { background-color: #045700; color: #ffffff; }
.modsel_c { background-color: #246EBE; color: #000000; }
.modsel_w { background-color: #ffffff; color: #000000; }
User avatar

Posts: 297


LadyBird Sun Apr 08, 2012 9:46 pm

User avatar

Posts: 297


LadyBird Thu Jul 04, 2013 6:14 pm

Re: [MOD] Nova2 Colors in Rank Selectboxes

I need to add more colors to the rank select boxes such as Klingon, Romulan, and Cardassian. Any idea how I could do that?
User avatar

Posts: 297


mooeypoo Thu Jul 04, 2013 6:48 pm

Re: [MOD] Nova2 Colors in Rank Selectboxes

Yep, you can edit the CSS file:
https://github.com/mooeypoo/Nova2-Mod-- ... /admin.css

Just add whatever color shortcut that you use for the rank type. For instance, if you ahve something like "lt-x" rank type (x being the color, and for now can only be 1 character long) then you add:

Code: Select all
.modsel_x { background-color: #000000; color: #cccccc; }


The CSS classes are determined by the image name (as the image ranks are produced now, including their colors in the filename) so just make sure whatever color shortcut you use is set in the image.

~mooey
Find my Nova MODs: https://github.com/mooeypoo
User avatar

Posts: 247


Next

Return to Nova MODs

Who is online

Users browsing this forum: No registered users and 1 guest