Author Topic: Server History  (Read 1841 times)

screenshot pls
Can't get on my computer till tommorow (dumb fireworks) unless my dad
leaves the house for something

Can't get on my computer till tommorow (dumb fireworks) unless my dad
leaves the house for something
what
how are fireworks related to a computer

what
how are fireworks related to a computer
Have to go to some stupid firework show so I lost my night computer time today'

I'll get pictures as soon as possible


Open the GUI yourself to see it :
Code: [Select]
//--- OBJECT WRITE BEGIN ---
new GuiControl(ServerHistory) {
   profile = "GuiDefaultProfile";
   horizSizing = "right";
   vertSizing = "bottom";
   position = "0 0";
   extent = "640 480";
   minExtent = "8 2";
   enabled = "1";
   visible = "1";
   clipToParent = "1";

   new GuiWindowCtrl() {
      profile = "GuiWindowProfile";
      horizSizing = "right";
      vertSizing = "bottom";
      position = "124 70";
      extent = "300 400";
      minExtent = "8 2";
      enabled = "1";
      visible = "1";
      clipToParent = "1";
      text = "Server History";
      maxLength = "255";
      resizeWidth = "1";
      resizeHeight = "1";
      closeCommand = "canvas.popDialog(ServerHistory);";
      canMove = "1";
      canClose = "1";
      canMinimize = "1";
      canMaximize = "1";
      minSize = "50 50";

      new GuiBitmapButtonCtrl(joinHistory) {
         profile = "BlockButtonProfile";
         horizSizing = "right";
         vertSizing = "bottom";
         position = "10 362";
         extent = "140 30";
         minExtent = "8 2";
         enabled = "1";
         visible = "1";
         clipToParent = "1";
         command = "joinHistory();";
         text = "Join Server";
         groupNum = "-1";
         buttonType = "PushButton";
         bitmap = "base/client/ui/button1";
         lockAspectRatio = "0";
         alignLeft = "0";
         alignTop = "0";
         overflowImage = "0";
         mKeepCached = "0";
         mColor = "0 255 0 255";
      };
      new GuiScrollCtrl(serverHistoryScroll) {
         profile = "GuiScrollProfile";
         horizSizing = "right";
         vertSizing = "bottom";
         position = "4 26";
         extent = "292 329";
         minExtent = "8 2";
         enabled = "1";
         visible = "1";
         clipToParent = "1";
         willFirstRespond = "0";
         hScrollBar = "alwaysOn";
         vScrollBar = "alwaysOn";
         constantThumbHeight = "0";
         childMargin = "0 0";
         rowHeight = "40";
         columnWidth = "30";

         new GuiTextListCtrl(serverHistoryList) {
            profile = "GuiTextListProfile";
            horizSizing = "right";
            vertSizing = "bottom";
            position = "1 1";
            extent = "275 2";
            minExtent = "8 2";
            enabled = "1";
            visible = "1";
            clipToParent = "1";
            enumerate = "0";
            resizeCell = "1";
            columns = "0";
            fitParentWidth = "1";
            clipColumnText = "0";
         };
      };
      new GuiBitmapButtonCtrl(clearHistory) {
         profile = "BlockButtonProfile";
         horizSizing = "right";
         vertSizing = "bottom";
         position = "154 361";
         extent = "140 30";
         minExtent = "8 2";
         enabled = "1";
         visible = "1";
         clipToParent = "1";
         command = "clearHistory();";
         text = "Clear History";
         groupNum = "-1";
         buttonType = "PushButton";
         bitmap = "base/client/ui/button1";
         lockAspectRatio = "0";
         alignLeft = "0";
         alignTop = "0";
         overflowImage = "0";
         mKeepCached = "0";
         mColor = "255 0 0 255";
      };
   };
};
//--- OBJECT WRITE END ---


On the scroll set

hScrollBar = "alwaysOff";

This would be marvelous.

On the scroll set

hScrollBar = "alwaysOff";

Thanks.

I manually populated the list in this picture (notice the History button on the joinServerGui) :



I could've just added the host + server name to the list instead of the ip as well, but I use getRowTextById and getSelectedId then get the last word for joining. When you press join server, the manualJoin dialog automatically is filled in with the details and immediately connects.
« Last Edit: July 05, 2013, 08:28:36 PM by Pacnet2012³ »

-snip-
Looks awesome so far, can't wait until it's finished!

Daym beat me to it. I was planning on making something like this but with favorites as well.

How long does the history last?  3 days?

How long does the history last?  3 days?
It's not counted by days.
-features 25 server limit, clear history,history list and joining based on port / ip
I'm assuming once it goes over 25 that it starts clearing the last server on the list?

I don't like the gui

can you make it like a tab, kinda like how lan games work

make the buttons grey the red and green don't fit the rest of the scheme

make the buttons grey the red and green don't fit the rest of the scheme
Put the join server button on the right too.