| Mirage Source http://www.miragesource.net/forums/ |
|
| Attributes Gone! http://www.miragesource.net/forums/viewtopic.php?f=201&t=2115 |
Page 1 of 1 |
| Author: | James [ Wed Jun 20, 2007 5:26 pm ] |
| Post subject: | Attributes Gone! |
Well, I recently switched back from optimized surfaces in the map editor to regular (with picBackSelect) and added in selecting multiple tiles, but now, my map attributes aren't being blitted to the screen, even though i know they exists, because they affect the map. Would anyone have any clue why? |
|
| Author: | Verrigan [ Thu Jun 21, 2007 4:48 am ] |
| Post subject: | Re: Attributes Gone! |
On Error Resume Next? |
|
| Author: | Styre [ Thu Jun 21, 2007 6:35 am ] |
| Post subject: | Re: Attributes Gone! |
Make sure you're attributes are blitted AFTER the fringe layer. |
|
| Author: | Rezeyu [ Thu Jun 21, 2007 6:47 am ] |
| Post subject: | Re: Attributes Gone! |
He told me names aren't being blitted either. So.. he prolly Screwed up the DrawText sub. |
|
| Author: | James [ Thu Jun 21, 2007 7:01 am ] |
| Post subject: | Re: Attributes Gone! |
Code: Public Sub DrawText(ByVal hDC As Long, ByVal X, ByVal Y, ByVal Text As String, Color As Long) Call SelectObject(hDC, GameFont) Call SetBkMode(hDC, vbTransparent) Call SetTextColor(hDC, RGB(50, 50, 50)) Call TextOut(hDC, X - 1, Y - 1, Text, Len(Text)) Call TextOut(hDC, X + 1, Y - 1, Text, Len(Text)) Call TextOut(hDC, X - 1, Y + 1, Text, Len(Text)) Call TextOut(hDC, X + 1, Y + 1, Text, Len(Text)) Call SetTextColor(hDC, Color) Call TextOut(hDC, X, Y, Text, Len(Text)) End Sub I saw this was different adn tried the original code: Code: Public Sub DrawText(ByVal hdc As Long, ByVal x, ByVal y, ByVal Text As String, Color As Long) Call SelectObject(hdc, GameFont) Call SetBkMode(hdc, vbTransparent) Call SetTextColor(hdc, RGB(0, 0, 0)) Call TextOut(hdc, x + 2, y + 2, Text, Len(Text)) Call TextOut(hdc, x + 1, y + 1, Text, Len(Text)) Call SetTextColor(hdc, Color) Call TextOut(hdc, x, y, Text, Len(Text)) 'End Sub Neither worked |
|
| Author: | Robin [ Thu Jun 21, 2007 3:09 pm ] |
| Post subject: | Re: Attributes Gone! |
Hmm. Unless someone else wants to give it a shot, I could probably fix the bug if you send me the source. I'm not the best programmer here, but I seem to have a decent eye for this sort of thing. Fox'll vouch for me. |
|
| Author: | Matt [ Thu Jun 21, 2007 5:35 pm ] |
| Post subject: | Re: Attributes Gone! |
Considering you've fixed more bugs here than most of us, I'd say you have a knack for it. |
|
| Author: | Verrigan [ Fri Jun 22, 2007 1:19 pm ] |
| Post subject: | Re: Attributes Gone! |
How are you getting the hdc? Code: pshDC = Surf.GetDC() ?Are you doing this before each DrawText call? Are you releasing the device context properly? |
|
| Author: | Robin [ Fri Jun 22, 2007 1:24 pm ] |
| Post subject: | Re: Attributes Gone! |
Verrigan wrote: How are you getting the hdc? Code: pshDC = Surf.GetDC() ?Are you doing this before each DrawText call? Are you releasing the device context properly? I think it might be easier if someone just looks through it imo. Magnus, I have time today so if you catch me on msn, just send me the source and I'll sort it out. |
|
| Author: | Robin [ Fri Jun 22, 2007 4:38 pm ] |
| Post subject: | Re: Attributes Gone! |
It seems that is was all in Maggy's head, and the attribute were there, even before I did anything to the code. Nice one Magnus! ^_^ |
|
| Author: | James [ Fri Jun 22, 2007 4:46 pm ] |
| Post subject: | Re: Attributes Gone! |
I guess my source only loves Robin and hates me..it plays mean tricks on me. -_- |
|
| Author: | FrankJScott [ Tue Nov 23, 2021 5:07 pm ] |
| Post subject: | Top Rated Betflik Blog |
To the man talking about great betflik new site I highly recommend this great เบทฟิก link or recommended betflix789 blog thatland as well as this excellent betflix789 advice and don't forget recommended เบทฟิก trusty site alongside all this high rated เบทฟิก site which is also great. Also have a look at this top rated betflik blog not to mention hot เบทฟิก blog gambling and don't forget this new betflik tips on top of play เบทฟิก online site as well as high rated betflix789 blog which is also worth a look. I also recommend this new betflix789 blog and don't forget recommended betflik blog gambling on top of this cool betflix789 site alongside all hot betflik blog thatland on top of top rated betflix789 link which is also great. Finally, have a look at this useful betflik info for good measure. Check thatfasttips and more Updated Betflik Info 42_53b9 |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|