Jump to content



Photo

Creating overlapping pictures is causing a bug


  • Please log in to reply
3 replies to this topic

#1 Achilles

Achilles

    Achilles == Ichigo

  • Active Members
  • PipPipPipPipPipPip
  • 2,897 posts

Posted 27 December 2007 - 06:00 AM

I am making a card game and in the script several card images overlap... this causes a problem with the pictures blending...

I have included a simple script that demonstrates the problem: Attached File  Problem.zip   22.13K   30 downloads

EDIT: See next post for solution

Edited by Piano_Man, 27 December 2007 - 06:04 AM.






#2 Achilles

Achilles

    Achilles == Ichigo

  • Active Members
  • PipPipPipPipPipPip
  • 2,897 posts

Posted 27 December 2007 - 06:03 AM

I found the solution! I created the blank pictures before the GuiSetState() and then used GuiCtrlSetImage() with the image I wanted

#3 rasim

rasim

    Gray Scripter

  • Active Members
  • PipPipPipPipPipPip
  • 1,708 posts

Posted 27 December 2007 - 11:31 AM

Hello Piano_Man!

I created the blank pictures before the GuiSetState() and then used GuiCtrlSetImage()

Sorry if my advise is stupid, you try this?:
GuiCreate('Testing', 190, 125) $x = 10 For $index = 1 to 7     GuiCtrlCreatePic(@ScriptDir & '\c' & $index & '.jpg', $x, 15, 71, 96)     $x += 16 Next GuiSetState() While 1     Switch GuiGetMsg()         Case -3             Exit                 EndSwitch WEnd


:)

Edited by rasim, 27 December 2007 - 11:31 AM.

OS: Windows XP SP3, AutoIt version: 3.3.0.0Posted Image My Projects: Free_Resources | Splitter | wgetGUI | UnRARIt | USBMon | CDROM-Control | Volume Serial Changer | WinTrayPosted Image My UDFs: _ScreenSetting | ListView_Progress | ContextHelp | ToolTip_UDF | UnRAR | Zip32 | BassMod | ShellTreeView | GuiHotKey | 7ZipPosted Image My Examples: TrayIcon_Click | SystemTray_Refresh | _ListView_Sort | CPUmonLike above scripts? Please rate the topic Posted Image

#4 Achilles

Achilles

    Achilles == Ichigo

  • Active Members
  • PipPipPipPipPipPip
  • 2,897 posts

Posted 27 December 2007 - 05:10 PM

I realized that would work too, for the given problem... however this is going to be a card game in which cards are dealt multiple times... I can't recreate the whole GUI (or rather don't want to) every time in order to have the cards set up...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users