<?xml version="1.0" encoding="utf-8"?>
<!-- Generated on Sat, 06 Jun 2026 04:59:35 +0200 -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>GMod-Fan Inc. - Форум</title>
    <link>https://gmod-fan.com/forum/problems/topic-3464.html</link>
    <description>Последние ответы в теме: [Lua] Проблема с HUD</description>
    <generator>LogicBoard</generator>
    <item>
      <title>[Lua] Проблема с HUD</title>
      <description><![CDATA[Решил проблему, всем спасибо.]]></description>
      <link>https://gmod-fan.com/forum/problems/last/topic-3464.html</link>
      <pubDate>Sun, 26 Jan 2014 07:39:41 +0100</pubDate>
      <author>SmallNibbler</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/problems/last/topic-3464.html]]></guid>
    </item>
    <item>
      <title>[Lua] Проблема с HUD</title>
      <description><![CDATA[В общем есть код:<br /><br /><blockquote class="blockspoiler"><span class="titlespoiler"><a href='#' onclick="ShowAndHide('625a29b24c5a929cf06002b872b6f714'); return false;">Код</a></span><div id='625a29b24c5a929cf06002b872b6f714' style='display:none;' class="textspoiler"><!-- JS code --><div class="javascript" style="font: normal normal 90% monospace; color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;"><div style="font-family: sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;">JavaScript code:</div><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">local tex <span style="color: #339933;">=</span> surface.<span style="color: #660066;">GetTextureID</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;materials/HUD/1&quot;</span><span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">local <span style="color: #003366; font-weight: bold;">function</span> drawBrickTexture<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; surface.<span style="color: #660066;">SetTexture</span><span style="color: #009900;">&#40;</span>tex<span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; surface.<span style="color: #660066;">SetDrawColor</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">255</span><span style="color: #339933;">,</span><span style="color: #CC0000;">255</span><span style="color: #339933;">,</span><span style="color: #CC0000;">255</span><span style="color: #339933;">,</span><span style="color: #CC0000;">255</span><span style="color: #009900;">&#41;</span> <span style="color: #006600; font-style: italic;">// Makes sure the image draws with all colors</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp; &nbsp; &nbsp; &nbsp; surface.<span style="color: #660066;">DrawTexturedRect</span><span style="color: #009900;">&#40;</span>ScrW<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #CC0000;">0.5</span><span style="color: #339933;">-</span><span style="color: #CC0000;">32</span><span style="color: #339933;">,</span>ScrH<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #CC0000;">0.5</span><span style="color: #339933;">-</span><span style="color: #CC0000;">32</span><span style="color: #339933;">,</span><span style="color: #CC0000;">300</span><span style="color: #339933;">,</span><span style="color: #CC0000;">300</span><span style="color: #009900;">&#41;</span></div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">end</div></li>
<li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 12px/15px monospace; margin:0; padding:0; background:none; vertical-align:top;">hook.<span style="color: #660066;">Add</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;HUDPaint&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;DrawTheBricks&quot;</span><span style="color: #339933;">,</span>drawBrickTexture<span style="color: #009900;">&#41;</span></div></li>
</ol></div><!--/JS code --></div></blockquote><!--spoiler --><br /><br />Текстуру пробовал в png и vtf форматах, но все равно вместо текстуры розовые шашечки.<br />Подскажите, в чем проблема?]]></description>
      <link>https://gmod-fan.com/forum/problems/last/topic-3464.html</link>
      <pubDate>Sat, 25 Jan 2014 18:17:20 +0100</pubDate>
      <author>SmallNibbler</author>
      <guid isPermaLink="true"><![CDATA[https://gmod-fan.com/forum/problems/last/topic-3464.html]]></guid>
    </item>
  </channel></rss>