| Mirage Source http://www.miragesource.net/forums/ |
|
| Draw text on a decent way http://www.miragesource.net/forums/viewtopic.php?f=183&t=4674 |
Page 1 of 58 |
| Author: | Joost [ Sat Nov 01, 2008 11:26 pm ] |
| Post subject: | Draw text on a decent way |
Code: Public Sub DrawText(ByVal hDC As Long, ByVal X, ByVal y, ByVal Text As String, Color As Long)
If LenB(Text) > 0 Then DD_BackBuffer.SetForeColor 0 DD_BackBuffer.DrawText X + 2, y + 2, Text, False DD_BackBuffer.DrawText X + 1, y + 1, Text, False DD_BackBuffer.SetForeColor Color DD_BackBuffer.DrawText X, y, Text, False End If End Sub |
|
| Author: | timster0 [ Thu Jan 15, 2009 11:43 pm ] |
| Post subject: | Re: Draw text on a decent way |
Where would I put this? |
|
| Author: | Nean [ Fri Jan 16, 2009 12:03 am ] |
| Post subject: | Re: Draw text on a decent way |
I'm guessing if there is already a drawtext sub, replace it? |
|
| Author: | William [ Fri Jan 16, 2009 12:35 am ] |
| Post subject: | Re: Draw text on a decent way |
so this will make the text wider with a shadow? |
|
| Author: | timster0 [ Fri Jan 16, 2009 12:41 am ] |
| Post subject: | Re: Draw text on a decent way |
I dunno, it doesn't seem to work with the newer version. |
|
| Author: | Jacob [ Fri Jan 16, 2009 1:21 pm ] |
| Post subject: | Re: Draw text on a decent way |
You need to set the font object for DX also. Code: Public Sub SetFont(ByVal Font As String, ByVal Size As Byte)
Dim FontInfo As New StdFont DD_BackBuffer.SetFontTransparency True FontInfo.Bold = True FontInfo.Size = Size FontInfo.Name = Font DD_BackBuffer.SetFont FontInfo End Sub |
|
| Author: | wanai [ Thu Dec 30, 2021 10:36 am ] |
| Post subject: | Re: Draw text on a decent way |
Econ |
|
| Author: | wanai [ Thu Dec 30, 2021 10:37 am ] |
| Post subject: | Re: Draw text on a decent way |
62 |
|
| Author: | wanai [ Thu Dec 30, 2021 10:38 am ] |
| Post subject: | Re: Draw text on a decent way |
Bett |
|
| Author: | wanai [ Thu Dec 30, 2021 10:39 am ] |
| Post subject: | Re: Draw text on a decent way |
Bett |
|
| Author: | wanai [ Thu Dec 30, 2021 10:40 am ] |
| Post subject: | Re: Draw text on a decent way |
Loon |
|
| Author: | wanai [ Thu Dec 30, 2021 10:41 am ] |
| Post subject: | Re: Draw text on a decent way |
Fire |
|
| Author: | wanai [ Thu Dec 30, 2021 10:42 am ] |
| Post subject: | Re: Draw text on a decent way |
Mari |
|
| Author: | wanai [ Thu Dec 30, 2021 10:43 am ] |
| Post subject: | Re: Draw text on a decent way |
XVII |
|
| Author: | wanai [ Thu Dec 30, 2021 10:45 am ] |
| Post subject: | Re: Draw text on a decent way |
Geor |
|
| Author: | wanai [ Thu Dec 30, 2021 10:46 am ] |
| Post subject: | Re: Draw text on a decent way |
Audi |
|
| Author: | wanai [ Thu Dec 30, 2021 10:47 am ] |
| Post subject: | Re: Draw text on a decent way |
Code |
|
| Author: | wanai [ Thu Dec 30, 2021 10:48 am ] |
| Post subject: | Re: Draw text on a decent way |
Prem |
|
| Author: | wanai [ Thu Dec 30, 2021 10:49 am ] |
| Post subject: | Re: Draw text on a decent way |
Milt |
|
| Author: | wanai [ Thu Dec 30, 2021 10:50 am ] |
| Post subject: | Re: Draw text on a decent way |
Shin |
|
| Author: | wanai [ Thu Dec 30, 2021 10:51 am ] |
| Post subject: | Re: Draw text on a decent way |
Fisk |
|
| Author: | wanai [ Thu Dec 30, 2021 10:52 am ] |
| Post subject: | Re: Draw text on a decent way |
Scho |
|
| Author: | wanai [ Thu Dec 30, 2021 10:54 am ] |
| Post subject: | Re: Draw text on a decent way |
Ange |
|
| Author: | wanai [ Thu Dec 30, 2021 10:55 am ] |
| Post subject: | Re: Draw text on a decent way |
Deko |
|
| Page 1 of 58 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|