troglodite Posted April 14, 2013 Author Share Posted April 14, 2013 Very easy tutorial for make an information/description of the classes when you are making a new characterNo surprise why the pictures are writed in spanish, becouse I am ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)**IN CLIENT SIDE**1º In **frmMenu** create a **lbl** in **picCharacter**, and name it **lblClassInfo**![](http://i45.tinypic.com/10h61zd.jpg)2º Search in the CodeUnder:```Private Sub cmbClass_Click()```Paste:```Dim lblClassInfo As String```Under:```newCharClass = cmbClass.ListIndexnewCharSprite = 0NewCharacterBltSprite```Paste:```frmMenu.lblClassInfo.Visible = TrueIf newCharClass = 0 ThenfrmMenu.lblClassInfo.Caption = "The Warrior is blah blah blah"ElseIf newCharClass = 1 ThenfrmMenu.lblClassInfo.Caption = "The Wizard is blah blah blah"ElsefrmMenu.lblClassInfo.Caption = "Class without information"End If```Notes"newCharClass = 0" is really the first ClassIn the caption goes the information of your class ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)Done!Example:![](http://i50.tinypic.com/30vfaro.jpg)- Excuse my english :$ Link to comment Share on other sites More sharing options...
juvanio Posted April 14, 2013 Share Posted April 14, 2013 Awesome tutorial! Even though I think there is one similar to this, but we've all got our own styles :]Sexy Zelda MMORPG by the way, nice screenshots on your signature! Link to comment Share on other sites More sharing options...
troglodite Posted April 15, 2013 Author Share Posted April 15, 2013 Thx ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
Matt Posted April 15, 2013 Share Posted April 15, 2013 Ideally you should make the description be set in the Classes.ini file and not hard-coded, but this gets the job done. ![^_^](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/happy.png) Link to comment Share on other sites More sharing options...
abhi2011 Posted April 15, 2013 Share Posted April 15, 2013 Or it can be sent from the server which would make the classes.ini in a way hard-coded. (not literally hard-coded)/off-topicYour GUI looks good. Link to comment Share on other sites More sharing options...
egemert35 Posted April 15, 2013 Share Posted April 15, 2013 Short and Nice tutorial.Thank You. Link to comment Share on other sites More sharing options...
boyesjs03 Posted April 15, 2013 Share Posted April 15, 2013 Wouldnt it be better to handle it as a case instead of an if statement? Would be tidier and easier to depict more than 3 classes. Link to comment Share on other sites More sharing options...
troglodite Posted April 16, 2013 Author Share Posted April 16, 2013 > Wouldnt it be better to handle it as a case instead of an if statement? Would be tidier and easier to depict more than 3 classes.Maybe, I dont know ![:blink:](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/blink.png)My VB level is newbie ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png) Link to comment Share on other sites More sharing options...
Matt Posted April 16, 2013 Share Posted April 16, 2013 > Wouldnt it be better to handle it as a case instead of an if statement? Would be tidier and easier to depict more than 3 classes.Indeed it would. You should look into Select Case Trog! Link to comment Share on other sites More sharing options...
DMF Posted April 16, 2013 Share Posted April 16, 2013 lols, i agrees.here you go study up : ).http://www.touchofdeathforums.com/community/index.php?/topic/132841-printing-to-a-label-be-it-class-or-whatever-you-like/ Link to comment Share on other sites More sharing options...
boyesjs03 Posted April 16, 2013 Share Posted April 16, 2013 It's an easy enough syntax xDDim "Case Name" As Long/String/Single blah blah blahSelect case "Case Name"Case 1…Case 2...Case 3...Case 4... Link to comment Share on other sites More sharing options...
DMF Posted April 16, 2013 Share Posted April 16, 2013 peace look at my link i think i gave enugh detail to how. xD Link to comment Share on other sites More sharing options...
boyesjs03 Posted April 16, 2013 Share Posted April 16, 2013 I was just explaining, I overlooked your link xD Link to comment Share on other sites More sharing options...
Matt Posted April 16, 2013 Share Posted April 16, 2013 Your link can be confusing to someone who's new to VB6 DMF. Link to comment Share on other sites More sharing options...
boyesjs03 Posted April 16, 2013 Share Posted April 16, 2013 > Your link can be confusing to someone who's new to VB6 DMF.I agree Link to comment Share on other sites More sharing options...
markelos Posted June 1, 2013 Share Posted June 1, 2013 Tell me i must edit files :frmMenu.frm and edit paste etc ? Link to comment Share on other sites More sharing options...
abhi2011 Posted June 1, 2013 Share Posted June 1, 2013 frmMenu, picCharacter Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now