void D3DMenu::Show(CD3DFont *pFont,IDirect3DDevice9* pDevice)
{
int i,val,cy;
DWORD color;
if (!visible) return;
cy=y;
if (title) {
pFont->DrawText((float)(x+totwidth/2), (float)cy+1, col_title,title,D3DFONT_SHADOW|D3DFONT_CENTERED); //Drawing Title...You can modify it too
cy+=titleheight; }
for (i=0; i<noitems; i++) {
if (MENU[i]->typ==MENUTEXT) {
pFont->DrawText((float)x, (float)cy, col_text,MENU[i]->txt,D3DFONT_SHADOW); //If Text draw without Box
if (MENU[i]->opt) {
pFont->DrawText((float)(x+ofs), (float)cy, col_text,(char *)MENU[i]->opt, D3DFONT_RIGHT|D3DFONT_SHADOW); //Drawing Text
}
} else {//desc = MENU[cur]->description;
val=(MENU[i]->var)?(*MENU[i]->var):0;
// determine color
if (i==cur)
color=col_current; //Color = Current
else if (MENU[i]->typ==MENUGROUP)
color=col_group; //Color = Group Color
else if (MENU[i]->typ==MENUGROUP1)
color=(val)?col_on:col_off; //Color = col_on:col_off (Green:Red as Example)
else
color=(val)?col_on:col_off; //Color = col_on:col_off (Green:Red as Example)
DrawBorderedBox(x,cy,10,10,D3DCOLOR_ARGB(255, 000, 000, 000),color,pDevice); //Drawing our Box before Menu Items (In Black and in your choosen color)
pFont->DrawText((float)x+15, (float)cy, col_item,MENU[i]->txt,D3DFONT_SHADOW); //New Calculation,Drawing Menu Items
if (MENU[i]->opt) {
pFont->DrawText((float)(x+ofs), (float)cy, color,(char *)MENU[i]->opt[val],D3DFONT_RIGHT|D3DFONT_SHADOW); //Drawing on/off
}
}/*Original is made by Hans211,Modified by KingClem™*/
cy+=height;
}
}
New Drawbordered Function modified by KingClem™,Original from idk...
New Drawbordered Function modified by KingClem™,Original from idk...
Code:
(...)
Also bitte, das erste ist nur so minimal modifiziert, da kann man nur lachen, dass du das deswegen postest. Dafür gehen allenfalls Credits an Hans211.
Das Gleiche mit der zweiten Funktion - Die ist von Croner... und was hast du modifiziert? So gut wie nichts.
Eine richtig gute DrawBorderedRectangle Function braucht den PrimitiveType D3DPT_TRIANGLESTRIP, D3DPT_TRIANGLELIST oder D3DPT_LINELIST sowie maximal 8 Vertices und einmaliges Rendern.
WTB Flyff Source code snippets 04/01/2012 - Flyff Trading - 0 Replies Hellow I posted this because I wanted to buy a fix scroll of unbinding.Which removes soul-link of an item.If you have its code snippets PM me.Don't sell me a code which is release because all of them are not working.I wanted to buy a fix one and a non-buggy code
Payment:via Paypal
[Autoit] Youtube Code Snippets 07/29/2011 - AutoIt - 5 Replies Tag Zusammen.
Wie wohl die meisten von euch mitbekommen haben, bieten derzeit sehr viele User hier sogenannte Youtube Services an, bei denen man Abos, Likes, Dislikes etc. kaufen kann.
Doch wer wirklich Erfolg haben will, braucht natürlich viele Abonnenten und Likes, was per Hand Tage dauern würde.
Deshalb werden hier in letzter Zeit immer mehr Youtube Bots verkauft.
Was, wie ich finde, ein ziemliche Abzocke ist, da das meist nur sehr schlechte Bots sind, die lediglich den Internet...
Some Code-Snippets[PSERVER] 07/15/2011 - Kal Hacks, Bots, Cheats & Exploits - 17 Replies This is the code of the hack which Fremo released..
I got new methods so I dont need this anymore & maybe it'll help some people...
G31 Adult Skill
if(comboBox4->Text=="Panther'crit'")
{
KC->Chat(255," Panther Skill ON");
KC->Threads=1;
KC->lasttime = timeGetTime()-15000;
}
else if(comboBox4->Text=="Tiger'otp'")
[Release] Code Snippets Manager 01/21/2011 - Coding Releases - 0 Replies Code Snippets Manager
http://upit.cc/images/1d47d78e.jpg
Hab mich heute mal rangesetzt, und einen kleinen Manager für
Code-Snippets(Code-Fetzen) gecodet, da ich alles sortiert
in einer Anwendung wollte.
Da es sicherlich jemand nützlich finden wird, lad ich es hier mal hoch.