SBox: Hide status bar?

Questions about Thema's mods, & plugins will be answered here

Moderator: Thema

SBox: Hide status bar?

Postby DownStrike » Sun Aug 20, 2006 10:35 am

First off, let me say to Thema, I love all the work you do to help other people enjoy their Java IRC applets to the maximum extent possible. :D It's appreciated. :lol: Now, onto the question...

All I wish to do is a seemingly simple task; remove the status bar from the SBox GUI. It is taking up valuable space which could be used for other things :D .

I don't know where to start. How would I remove the status bar?
DownStrike
 
Posts: 14
Joined: Sun Aug 20, 2006 10:32 am

Postby PapaBearPW » Sun Aug 20, 2006 11:45 am

Should be:

<param name="sbox:showstatus" value="false">
PapaBearPW
 
Posts: 37
Joined: Mon May 29, 2006 1:06 am

Postby DownStrike » Sun Aug 20, 2006 12:06 pm

I assume I place that in the HTML file? I tried it, and it doesn't work.. it basically renders the client unusable - there is no text where all the text is meant to be in the middle, there is no textbox. The only thing that shows is the bar at the top with Help etc, the status bar, and the bar at the bottom that is supposed to show channels.
DownStrike
 
Posts: 14
Joined: Sun Aug 20, 2006 10:32 am

Postby PapaBearPW » Sun Aug 20, 2006 12:34 pm

Then I'm not sure what you want disabled. These are the only ones I know of (aside from certain buttons) that you can diable.

<param name="sbox:showmenubar" value="false">
<param name="sbox:shownicklist" value="false">
<param name="sbox:showtaskbar" value="false">
<param name="sbox:showchanlist" value="false">

Oh, and yes, they would go in the html.
PapaBearPW
 
Posts: 37
Joined: Mon May 29, 2006 1:06 am

Postby Thema » Sun Aug 20, 2006 11:28 pm

Can I have a link to your applet so I can see for myself what you're doing?

8)
Go on.
Tell me I'm not nice again.
See what it gets you!
*******************************
Lost or confused?
Read the announcement topic in the
Technical Support forum for help tips.
*******************************
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm

Postby DownStrike » Mon Aug 21, 2006 1:02 am

I haven't uploaded it yet, and I don't have time to at the moment, so I'll post an image of what I mean by the status box.

Image

The box I highlighted in red is what I wish to remove, I also want to expand the nick and channel boxes to fill its place (if that's not automatic).

If you still need me to upload the applet I'll do it later, when I have some time. :)

On another note, is there any way to make the channel boxes grow smaller as it fills up (or add a scrollbar)?
DownStrike
 
Posts: 14
Joined: Sun Aug 20, 2006 10:32 am

Postby Thema » Mon Aug 21, 2006 1:42 am

That bar is the topic bar. I don't think it can be removed.
The answer to your second querstion is also no at the moment.
I haven't yet managed to work out how to add a scrollbar, and I don't think that shrinking the buttons will really work out all that well as they would become unreadable.
I am working on the scrollbar issue, as soon as I learn how to add one I will.

8)
Go on.
Tell me I'm not nice again.
See what it gets you!
*******************************
Lost or confused?
Read the announcement topic in the
Technical Support forum for help tips.
*******************************
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm

Postby DownStrike » Mon Aug 21, 2006 8:42 am

Alright, thanks for your help. :)
DownStrike
 
Posts: 14
Joined: Sun Aug 20, 2006 10:32 am

Postby antiaverage » Mon Mar 12, 2007 9:47 am

Thema wrote:I am working on the scrollbar issue, as soon as I learn how to add one I will.

8)


Just wondering if there is any news on this issue... Sorry to bump an old thread, but it felt inappropriate to create a new one.

Also, would it be possible to add the Op prefixes to sbox as well? Your work on pixx was excellent, although I would have enjoyed having Voice indicated as well... despite it being nearly pointless 8)
antiaverage
 
Posts: 25
Joined: Mon Oct 03, 2005 7:53 pm
Location: New York

Postby Thema » Mon Mar 12, 2007 11:15 pm

Good bump.
I'm working on a small project that may cast some light on that issue, but again, as ever, don't hold your breath.
At the very least I will look at it again during the next few. If I come up with anything I will post it.


8)
Go on.
Tell me I'm not nice again.
See what it gets you!
*******************************
Lost or confused?
Read the announcement topic in the
Technical Support forum for help tips.
*******************************
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm

Postby antiaverage » Mon Mar 12, 2007 11:40 pm

Thema wrote:At the very least I will look at it again during the next few. If I come up with anything I will post it. 8)


That's all I could ever ask for :D

Although it seems it would be trivial to add Op prefix support to sbox, so is that at least doable?
antiaverage
 
Posts: 25
Joined: Mon Oct 03, 2005 7:53 pm
Location: New York

Postby Thema » Tue Mar 13, 2007 8:04 pm

Sorry the question about op prefixes in the SBox GUI went by me somehow.

Yes that should be doable. All I need to do is copy the code from the Prefixed GUI to the relevent place in the shoutbox.

I can see how it would be useful to know if you're talking to a ChanOp before you upset them and end up kicked...
:lol: :lol: :lol:

I will find time for it very soon. I will try for the weekend, or sooner.

8)
Go on.
Tell me I'm not nice again.
See what it gets you!
*******************************
Lost or confused?
Read the announcement topic in the
Technical Support forum for help tips.
*******************************
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm

Postby antiaverage » Tue Mar 13, 2007 9:34 pm

Thema wrote:Sorry the question about op prefixes in the SBox GUI went by me somehow.

Yes that should be doable. All I need to do is copy the code from the Prefixed GUI to the relevent place in the shoutbox.

I can see how it would be useful to know if you're talking to a ChanOp before you upset them and end up kicked...
:lol: :lol: :lol:

I will find time for it very soon. I will try for the weekend, or sooner.

8)


Would you mind pointing me to where in the source code the prefix edit is for both pixx and sbox when you are done? I would like to modify it a bit so that just the symbol is colored, and I would like to add it so you can prefix voiced users with and add a separate color option for it.

Also, good luck on the scrollbar addition ^_^
antiaverage
 
Posts: 25
Joined: Mon Oct 03, 2005 7:53 pm
Location: New York

Postby Thema » Tue Mar 13, 2007 10:18 pm

Didn't I comment the source already?

That would be just like me. :P

Here's an updated GUI with Voice-Ops and comments:-

Prefix-Pixx v2 GUI

I'll upload it just as soon as somebody fixes the uploads page again.

8)
Go on.
Tell me I'm not nice again.
See what it gets you!
*******************************
Lost or confused?
Read the announcement topic in the
Technical Support forum for help tips.
*******************************
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm

Postby antiaverage » Thu Mar 15, 2007 4:46 am

It still doesn't seem to be grabbing the + prefix when:
String full=(String)_modeMapping.get(nick);
in the AWTChannel.java file
antiaverage
 
Posts: 25
Joined: Mon Oct 03, 2005 7:53 pm
Location: New York

Postby Thema » Thu Mar 15, 2007 5:41 pm

Wow, doesn't it? :P

Sorry but I've been to sleep since I wrote the mods in that GUI. Perhaps you can tell me what it means in terms of how the GUI behaves...

As far as I can remember the + for VoiceOp is treated in exactly the same way as the other ChanOp sigils, and should work every bit as well.

8)
Go on.
Tell me I'm not nice again.
See what it gets you!
*******************************
Lost or confused?
Read the announcement topic in the
Technical Support forum for help tips.
*******************************
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm

Postby antiaverage » Fri Mar 16, 2007 6:45 am

Thema wrote:Perhaps you can tell me what it means in terms of how the GUI behaves...


Well, essentially, anyone with voice is still seen without a prefix. :(

I've been digging in the source and still can't determine why this is.

Thanks for your time 8)
antiaverage
 
Posts: 25
Joined: Mon Oct 03, 2005 7:53 pm
Location: New York

Postby Thema » Fri Mar 16, 2007 7:15 am

Are you sure?

Perhaps you need to clear out your Java cache.

That GUI has been in a production environment now for some time as it was a special request from Syzop who is one of the coders for the UnrealIRCD. I would have thought he would have told me if it didn't work.

Even so I will test it for myself over the weekend if not sooner.

8)
Go on.
Tell me I'm not nice again.
See what it gets you!
*******************************
Lost or confused?
Read the announcement topic in the
Technical Support forum for help tips.
*******************************
Thema
 
Posts: 2881
Joined: Sat Oct 18, 2003 5:34 pm

Postby antiaverage » Sat Mar 17, 2007 1:22 am

Thema wrote:Are you sure?

Perhaps you need to clear out your Java cache.

That GUI has been in a production environment now for some time as it was a special request from Syzop who is one of the coders for the UnrealIRCD. I would have thought he would have told me if it didn't work.

Even so I will test it for myself over the weekend if not sooner.

8)


I'ts okay, while I had cleared my browser cache, I had forgotten that the Sun JRE keeps its own separate cache. Seems that the voice is fine, however there is still an issue. Those with & status have their name appearing as white on white. You can highlight their nick to copy it, and paste it somewhere and see it's fine, just wrongly colored. I have set all options you list in the readme to have their foregrounds as 1 (black) and their backgrounds as 0 (white) and yet the problem persists. Any thoughts?

<param name="pixx:prefixops" value="true">
<param name="pixx:prefixbold" value="false">
<param name="pixx:prefixfg" value="1">
<param name="pixx:prefixbg" value="0">
<param name="pixx:prefixopfg" value="1">
<param name="pixx:prefixopbg" value="0">
<param name="pixx:prefixsopfg" value="1">
<param name="pixx:prefixsopbg" value="0">
<param name="pixx:prefixhopfg" value="1">
<param name="pixx:prefixhopbg" value="0">
<param name="pixx:prefixvopfg" value="1">
<param name="pixx:prefixvopbg" value="0">


Also, how goes the quest for the scroll bar?

Excellent work so far, and thanks for all your help :)
antiaverage
 
Posts: 25
Joined: Mon Oct 03, 2005 7:53 pm
Location: New York

Postby antiaverage » Sat Mar 17, 2007 2:51 am

I dug through the code and saw that you do not have a setting for protected ops (+ao) which have the & prefix. This is an UnrealIRCD specific thing, however it won't adversely affect non-UnrealIRCD's to insert this, and it will help this bug which many UnrealIRCD users are noticing in this mod.

The problem is in AWTChannel.java here:
Code: Select all
if((full!=null) && (!full.equals(nick)))   // Check to see if there is a prefixed nick
         {
            String prefix=full.substring(0,1);
            int fg=0;
            int bg=0;
            if (prefix.equals("~"))
            {            
               fg=_pixxConfiguration.getI("prefixsopfg");   // Get the foreground colour
               bg=_pixxConfiguration.getI("prefixsopbg");   // Get the background colour
            }
            else if (prefix.equals("@"))
            {            
               fg=_pixxConfiguration.getI("prefixopfg");   // Get the foreground colour
               bg=_pixxConfiguration.getI("prefixopbg");   // Get the background colour
            }
            else if (prefix.equals("%"))
            {            
               fg=_pixxConfiguration.getI("prefixhopfg");   // Get the foreground colour
               bg=_pixxConfiguration.getI("prefixhopbg");   // Get the background colour
            }
            else if (prefix.equals("+"))
            {            
               fg=_pixxConfiguration.getI("prefixvopfg");   // Get the foreground colour
               bg=_pixxConfiguration.getI("prefixvopbg");   // Get the background colour
            }
            nick=""+fg+","+bg+full+"";            // Add the new background & foreground colours, and remove them after the nick.
            if (_pixxConfiguration.getB("prefixbold"))
            {
               nick=""+nick+"";                  // Embolden the nick if needed.
            }
         }


Change it to:

Code: Select all
if((full!=null) && (!full.equals(nick)))   // Check to see if there is a prefixed nick
         {
            String prefix=full.substring(0,1);
            int fg=0;
            int bg=0;
            if (prefix.equals("~"))
            {            
               fg=_pixxConfiguration.getI("prefixsopfg");   // Get the foreground colour
               bg=_pixxConfiguration.getI("prefixsopbg");   // Get the background colour
            }
            else if (prefix.equals("&"))
            {            
               fg=_pixxConfiguration.getI("prefixpopfg");   // Get the foreground colour
               bg=_pixxConfiguration.getI("prefixpopbg");   // Get the background colour
            }
            else if (prefix.equals("@"))
            {            
               fg=_pixxConfiguration.getI("prefixopfg");   // Get the foreground colour
               bg=_pixxConfiguration.getI("prefixopbg");   // Get the background colour
            }
            else if (prefix.equals("%"))
            {            
               fg=_pixxConfiguration.getI("prefixhopfg");   // Get the foreground colour
               bg=_pixxConfiguration.getI("prefixhopbg");   // Get the background colour
            }
            else if (prefix.equals("+"))
            {            
               fg=_pixxConfiguration.getI("prefixvopfg");   // Get the foreground colour
               bg=_pixxConfiguration.getI("prefixvopbg");   // Get the background colour
            }
            nick=""+fg+","+bg+full+"";            // Add the new background & foreground colours, and remove them after the nick.
            if (_pixxConfiguration.getB("prefixbold"))
            {
               nick=""+nick+"";                  // Embolden the nick if needed.
            }
         }


Also, you will then need to edit the parameters set in PixxConfigurationLoader.java from:

Code: Select all
config.set("prefixops",getBoolean("prefixops",false));   // Added by Thema for Syzop.
    config.set("prefixbold",getBoolean("prefixbold",true)); // Added by Thema for Syzop.
    config.set("prefixsopfg",getInt("prefixsopfg",4));      // Added by Thema for Syzop.
    config.set("prefixopfg",getInt("prefixopfg",4));      // Added by Thema for Syzop.
    config.set("prefixhopfg",getInt("prefixhopfg",4));      // Added by Thema for Syzop.
    config.set("prefixvopfg",getInt("prefixvopfg",4));      // Added by Thema for Syzop.
   config.set("prefixsopbg",getInt("prefixsopbg",0));      // Added by Thema for Syzop.
    config.set("prefixopbg",getInt("prefixopbg",0));      // Added by Thema for Syzop.
    config.set("prefixhopbg",getInt("prefixhopbg",0));      // Added by Thema for Syzop.
    config.set("prefixvopbg",getInt("prefixvopbg",0));      // Added by Thema for Syzop.


To:

Code: Select all
    config.set("prefixops",getBoolean("prefixops",false));   // Added by Thema for Syzop.
    config.set("prefixbold",getBoolean("prefixbold",true)); // Added by Thema for Syzop.
    config.set("prefixsopfg",getInt("prefixpopfg",4));      // Added by Antiaverage for Thema.
    config.set("prefixsopfg",getInt("prefixsopfg",4));      // Added by Thema for Syzop.
    config.set("prefixopfg",getInt("prefixopfg",4));      // Added by Thema for Syzop.
    config.set("prefixhopfg",getInt("prefixhopfg",4));      // Added by Thema for Syzop.
    config.set("prefixvopfg",getInt("prefixvopfg",4));      // Added by Thema for Syzop.
    config.set("prefixsopfg",getInt("prefixpopbg",0));      // Added by Antiaverage for Thema.
    config.set("prefixsopbg",getInt("prefixsopbg",0));      // Added by Thema for Syzop.
    config.set("prefixopbg",getInt("prefixopbg",0));      // Added by Thema for Syzop.
    config.set("prefixhopbg",getInt("prefixhopbg",0));      // Added by Thema for Syzop.
    config.set("prefixvopbg",getInt("prefixvopbg",0));      // Added by Thema for Syzop.


I would do it myself, however I'm horribly stuck with trying to compile all this stuff, and I'm assuming you have a fairly tailor-made set-up for re-compiling all this.

Once again, you are so wonderful for taking your time to do this stuff.
antiaverage
 
Posts: 25
Joined: Mon Oct 03, 2005 7:53 pm
Location: New York

Next

Return to Thema's Mods etc.

Who is online

Users browsing this forum: No registered users and 1 guest