Jump to content



Photo

Steam GUI


  • Please log in to reply
15 replies to this topic

#1 FinalVersion

FinalVersion

    0 ^ 1

  • Active Members
  • PipPipPipPipPipPip
  • 599 posts

Posted 19 February 2010 - 03:51 PM

I just like felt like sharing this, and the images I've used aren't the default Steam theme.

Posted Image

Attached File  Steam GUI.zip   1.21K   524 downloads

Edited by FinalVersion, 19 February 2010 - 04:14 PM.








#2 Kealper

Kealper

    Wayfarer

  • Active Members
  • Pip
  • 90 posts

Posted 19 February 2010 - 04:07 PM

Very cool, but you should replace the static path to the images for the GUI creation with @ScriptDir, so people do not have to go in an change that. Other than that, nice job :mellow:
Posted Image

#3 FinalVersion

FinalVersion

    0 ^ 1

  • Active Members
  • PipPipPipPipPipPip
  • 599 posts

Posted 19 February 2010 - 04:11 PM

Ah yeah, forgot all about that. I'll do that now.

Edit: Done.

Edited by FinalVersion, 19 February 2010 - 04:14 PM.


#4 picea892

picea892

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 689 posts

Posted 19 February 2010 - 04:39 PM

Hi...there are other examples on the forum...one using no pictures

#5 Dreamfire

Dreamfire

    Wayfarer

  • Active Members
  • Pip
  • 54 posts

Posted 19 February 2010 - 04:44 PM

here is the one i made last year :mellow:

http://www.autoitscript.com/forum/index.php?showtopic=95043&st=0&p=682968&#entry682968

#6 FinalVersion

FinalVersion

    0 ^ 1

  • Active Members
  • PipPipPipPipPipPip
  • 599 posts

Posted 19 February 2010 - 05:17 PM

There nice but I like this Steam theme better :mellow:

#7 Fire

Fire

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 362 posts

Posted 19 February 2010 - 10:21 PM

Very nice Job.I like it.Thanks very much FinalVersion.

#8 FinalVersion

FinalVersion

    0 ^ 1

  • Active Members
  • PipPipPipPipPipPip
  • 599 posts

Posted 20 February 2010 - 09:48 AM

Thanks.

#9 NerdFencer

NerdFencer

    Universalist

  • Active Members
  • PipPipPipPipPip
  • 284 posts

Posted 20 February 2010 - 08:21 PM

The images bugged me, so I wrote a modified version without images that uses the steam theme colors.
AutoIt         
#NoTrayIcon #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <SendMessage.au3> #include <Constants.au3> #include <WinApi.au3> Global Const $SC_DRAGMOVE = 0xF012 Opt("MouseCoordMode", 2) Local $tMsg Opt("TrayMenuMode", 1) $frmMain = GUICreate("frmMain", 333, 441, 192, 124, $WS_POPUP, 0) GUISetState(@SW_SHOW) GUISetBkColor(0x464646,$frmMain) $rgn = _WinAPI_CreateRoundRectRgn(0, 0, 333, 441, 3, 3) _WinAPI_SetWindowRgn($frmMain, $rgn) DrawBar() While 1     $tMsg = TrayGetMsg()     Switch $tMsg         Case $TRAY_EVENT_PRIMARYDOWN             GUISetState(@SW_SHOW)             DrawBar()             WinSetState("frmMain", "", @SW_RESTORE)             Opt("TrayIconHide", 1)     EndSwitch     $nMsg = GUIGetMsg()     Switch $nMsg         Case $GUI_EVENT_CLOSE             Exit         Case $GUI_EVENT_PRIMARYDOWN             $mPos = MouseGetPos()             If $mPos[1] <= 20 Then                 If $mPos[0] >= 295 And $mPos[0] <= 316 Then                     GUISetState(@SW_HIDE)                     Opt("TrayIconHide", 0)                 ElseIf $mPos[0] >= 313 And $mPos[0] <= 322 Then                     Exit                 Else                     _SendMessage($frmMain, $WM_SYSCOMMAND, $SC_DRAGMOVE, 0)                 EndIf             EndIf     EndSwitch WEnd Func DrawBar()     Local $aDim = WinGetClientSize($frmMain)     Local $hDC = _WinAPI_GetDC($frmMain)     ; Bar     Local $hBrush = _WinAPI_CreateSolidBrush(0x5a6a50)     Local $hRect = DllStructCreate($tagRECT)     DllStructSetData($hRect,"Left",0)     DllStructSetData($hRect,"Top",0)     DllStructSetData($hRect,"Right",$aDim[0])     DllStructSetData($hRect,"Bottom",20)     _WinAPI_FillRect($hDC,DllStructGetPtr($hRect),$hBrush)     _WinAPI_DeleteObject($hBrush)     ; Minimize     $hBrush = _WinAPI_CreateSolidBrush(0xd8ded3)     DllStructSetData($hRect,"Left",$aDim[0]-37)     DllStructSetData($hRect,"Top",12)     DllStructSetData($hRect,"Right",$aDim[0]-28)     DllStructSetData($hRect,"Bottom",14)     _WinAPI_FillRect($hDC,DllStructGetPtr($hRect),$hBrush)     _WinAPI_DeleteObject($hBrush)     ; Close     Local $hPen = _WinAPI_CreatePen($PS_SOLID,2,0xd8ded3)     Local $hSelected = _WinAPI_SelectObject($hDC,$hPen)     _WinAPI_DrawLine($hDC,$aDim[0]-20, 5, $aDim[0]-11, 14)     _WinAPI_DrawLine($hDC,$aDim[0]-20, 14, $aDim[0]-11, 5)     _WinAPI_SelectObject($hDC,$hSelected)     _WinAPI_DeleteObject($hPen)     $hBrush = _WinAPI_CreateSolidBrush(0xd8ded3)     ; Frame Edge     $hBrush = _WinAPI_CreateSolidBrush(0x686a65)     DllStructSetData($hRect,"Left",$aDim[0]-1)     DllStructSetData($hRect,"Top",20)     DllStructSetData($hRect,"Right",$aDim[0])     DllStructSetData($hRect,"Bottom",$aDim[1])     _WinAPI_FillRect($hDC,DllStructGetPtr($hRect),$hBrush)     DllStructSetData($hRect,"Left",0)     DllStructSetData($hRect,"Top",20)     DllStructSetData($hRect,"Right",1)     DllStructSetData($hRect,"Bottom",$aDim[1])     _WinAPI_FillRect($hDC,DllStructGetPtr($hRect),$hBrush)     DllStructSetData($hRect,"Left",0)     DllStructSetData($hRect,"Top",$aDim[1]-1)     DllStructSetData($hRect,"Right",$aDim[0])     DllStructSetData($hRect,"Bottom",$aDim[1])     _WinAPI_FillRect($hDC,DllStructGetPtr($hRect),$hBrush)     _WinAPI_DeleteObject($hBrush)     _WinAPI_ReleaseDC($frmMain,$hDC)     AdlibRegister("DrawBar") EndFunc

Edited by NerdFencer, 20 February 2010 - 08:49 PM.


#10 James

James

    jbrooksuk

  • MVPs
  • 9,470 posts

Posted 03 April 2010 - 09:29 PM

NerdFencer,

I'm not pro at GDI stuff, not even close, so here is a question for you. Why is it, when I replace the default colours with 0x97D9F5 and 0xe9eff5, do they not appear as they should? I should see blue, not orange/cream.

James

#11 James

James

    jbrooksuk

  • MVPs
  • 9,470 posts

Posted 07 April 2010 - 12:58 PM

I'm not pro at GDI stuff, not even close, so here is a question for you. Why is it, when I replace the default colours with 0x97D9F5 and 0xe9eff5, do they not appear as they should? I should see blue, not orange/cream.

Ok, so does anyone have an answer for my question?

#12 ripdad

ripdad

    Member

  • Active Members
  • PipPipPipPipPipPip
  • 537 posts

Posted 07 April 2010 - 02:56 PM

Weird, Tried blue on the background - thats blue.

Tried blue on the titlebar - thats not blue.

Look at: Line 77 and 79 -- nothing to do with above comment
I'm pretty sure this script has "some flaws" (somewhere). Welcome to programming!

#13 dantay9

dantay9

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 834 posts

Posted 07 April 2010 - 03:25 PM

The colors for the background are in RGB format while the colors in the Draw function are in BGR format. So, for red, instead of using 0xFF0000, use 0x0000FF.
"Failure is not an option -- it comes packaged with Windows" Gecko Web Browser, Yahtzee!, Toolbar Launcher (like RocketDock)Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI Triangle Solver, TCP File Transfer, Valuater's Autoit WrappersOOP In AutoItUsing Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com

#14 ripdad

ripdad

    Member

  • Active Members
  • PipPipPipPipPipPip
  • 537 posts

Posted 07 April 2010 - 03:34 PM

That explains alot - just think backwards
I'm pretty sure this script has "some flaws" (somewhere). Welcome to programming!

#15 James

James

    jbrooksuk

  • MVPs
  • 9,470 posts

Posted 07 April 2010 - 07:30 PM

The colors for the background are in RGB format while the colors in the Draw function are in BGR format. So, for red, instead of using 0xFF0000, use 0x0000FF.

I was thinking of something like that but couldn't see the documentation for it, that or I mis-read it.

#16 Manadar

Manadar

    Taking a REST.

  • MVPs
  • 10,714 posts

Posted 08 April 2010 - 06:19 AM

I was thinking of something like that but couldn't see the documentation for it, that or I mis-read it.

Rule of thumb: If RGB doesn't work as expected, try BGR.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users