Sign in to follow this  
Followers 0
litlmike

Football PlayMaker

Should I use Graphics or Images in this Script?   2 members have voted

  1. 1. Should I use Graphics or Images in this Script?

    • Graphics
      0
    • Images
      0
    • Both
      0

Please sign in or register to vote in this poll.

13 posts in this topic

#1 ·  Posted (edited)

Hello everyone.

I would like to create a Football Play Book Editor (not Soccer). It would entail:

GUI that user can create plays

Ability to Save Plays

Ability to Print Plays

This helps a Football team build a playbook and design offensive, defensive, and special teams plays. If you are unfamiliar, you can see an example of this type of program here: http://www.playmakerpro.com/playmaker.html

I will have a lot of questions along the way, but I want to start out simple first.

First Question:

How will the user interact with the GUI? Do I have to create a number of graphics that the user can insert (which limits what the user can create), or is it possible to let them draw freely like in Microsoft Word's drawing tool (infinite possibilities)? If so, how?

This is my first attempt at something like this, and I really do not know which direction to take, so ANY help is appreciated.

Thanks in Advance

****************EDIT**********

March 23, 2007 10:30 AM

Adding Script I am working on

Download to View the Package here:

******************************

Edited by litlmike

Share this post


Link to post
Share on other sites



Hello everyone.

I would like to create a Football Play Book Editor (not Soccer). It would entail:

GUI that user can create plays

Ability to Save Plays

Ability to Print Plays

This helps a Football team build a playbook and design offensive, defensive, and special teams plays. If you are unfamiliar, you can see an example of this type of program here: http://www.playmakerpro.com/playmaker.html

I will have a lot of questions along the way, but I want to start out simple first.

First Question:

How will the user interact with the GUI? Do I have to create a number of graphics that the user can insert (which limits what the user can create), or is it possible to let them draw freely like in Microsoft Word's drawing tool (infinite possibilities)? If so, how?

This is my first attempt at something like this, and I really do not know which direction to take, so ANY help is appreciated.

Thanks in Advance

Well... looks kind of hard (very, ultra hard 2 me) to do!

Use Scite and the is a Gui Design program.

Thou try to create the GUI, ideas would come up with time!

I saw the program, and as far i could understand... hard to do...

Cheers and good luck!

maybe i could help you best with some code already :S


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
Share on other sites

Well... looks kind of hard (very, ultra hard 2 me) to do!

Use Scite and the is a Gui Design program.

Thou try to create the GUI, ideas would come up with time!

I saw the program, and as far i could understand... hard to do...

Cheers and good luck!

maybe i could help you best with some code already :S

Yea it could be very hard, I have no idea, since I have never tried this in AutoIt before. Here is why I didn't provide code, I don't even know what direction to go with this, meaning would the background be just a GUI with some buttons that toggle graphics? Or is there like a COM object or something that I can insert for the "background"?

Share this post


Link to post
Share on other sites

Hey, this is actually a great idea (even I could use it for my football team :whistle: ). It's definately do-able, except the print function might be a hassle. Use GUICtrlCreateGraphic, GUICtrlSetPos, GUICtrlSetGraphic, Or maybe instead of graphics, use image files.

Kurt


Awaiting Diablo III..

Share this post


Link to post
Share on other sites

Hey, this is actually a great idea (even I could use it for my football team :whistle: ). It's definately do-able, except the print function might be a hassle. Use GUICtrlCreateGraphic, GUICtrlSetPos, GUICtrlSetGraphic, Or maybe instead of graphics, use image files.

Kurt

That is good info to have. So what is the difference between a graphic or image file?

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

That is good info to have. So what is the difference between a graphic or image file?

Graphics are more dynamic, but are slower and harder to make. Image files are fast, but do not offer much flexibility. Edited by Manadar

Share this post


Link to post
Share on other sites

i like this idea, once i get back to my desk computer(i'm on a training computer helping some temps right now) i'll test out a couple of ideas that i have.


1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Glad to see there is some interest in this, maybe when it is all done I will post for everyone to download. I have been working on this for awhile, and I got a basic version started. The only thing it can do right now, is create circles and squares to represent the offense and defense. Press the button, then click where you want it to go.

Maybe someone can tell me why the squares/circles do not get created in the location the mouseclick occurs? It looks like it adds 100 to the x,y coords.

***EDIT***

Forgot to post code:

#include <GUIConstants.au3>
#Include <Misc.au3>

GUICreate("Football Play Maker", 800,800,100,100)
$Graphic1 = GUICtrlCreateGraphic ( 100, 100, 600, 600 )
GUICtrlSetBkColor ( -1 , 0x7FFF00)
$Square = GUICtrlCreateButton ("Square", 50, 100)
$Circle = GUICtrlCreateButton ("Circle", 50, 150)

GUISetState()

Do
    $msg = GUIGetMsg()
    
    Switch $Msg
        Case $GUI_EVENT_CLOSE
            Exit
        
        Case $Square
            Mouse_Is_Pressed ()
            $a = GetPos()
            Draw_Square ()
        
        Case $Circle
            Mouse_Is_Pressed ()
            $a = GetPos()
            Draw_Circle ()      
        
    EndSwitch

Until $msg=$GUI_EVENT_CLOSE


Func Draw_Square ()
;~  MsgBox (0, "", "a[0] = " & $a[0] & @CRLF & "a[1] = " & $a[1], 1)    
    $w = 25
    $h = $w
    GUICtrlSetGraphic ( $Graphic1, $GUI_GR_RECT, $a[0], $a[1], $w, $h)
    GUICtrlSetGraphic ( $Graphic1, $GUI_GR_REFRESH )
EndFunc

Func Draw_Circle ()
;~  MsgBox (0, "", "a[0] = " & $a[0] & @CRLF & "a[1] = " & $a[1], 1)    
    $w = 25
    $h = $w
    GUICtrlSetGraphic ( $Graphic1, $GUI_GR_ELLIPSE, $a[0], $a[1], $w, $h)
    GUICtrlSetGraphic ( $Graphic1, $GUI_GR_REFRESH )
EndFunc

Func GetPos()   
    $a=GUIGetCursorInfo()
    Return $a
EndFunc

Func Mouse_Is_Pressed ()
    $s_hexKey = 01
    Do
        Sleep (10)
    Until _IsPressed ( $s_hexKey )
EndFunc
Edited by litlmike

Share this post


Link to post
Share on other sites

I Believe with the ease of creating pictures and such you can then use http://www.autoitscript.com/forum/index.php?showtopic=31705

To simply allow people to drag pictures across the GUI

I really like what Gary put together there in that post, but I do not know what I need to take away from that script to implement into this script. It looks like I need the DragControls.au3, but what do I need in my script to "activate" the dragging ability?

What does everyone think about using graphics versus images in this?

Share this post


Link to post
Share on other sites

Small Breakthrough...

Based upon some of your suggestions, and Gary Frost's Gui Control Drag, I created a Simple GUI using graphics. I started with just a simple Offensive Formation (I formation). Give it a try, and give me some feedback please.

I will post in the original post.

Share this post


Link to post
Share on other sites

About storing formations for the user to choose from, I am not really even sure what the best way to store the different formations.

Should they be in seperate files that are parsed by some function? Should they just be functions themselves?

Share this post


Link to post
Share on other sites

Is this too many questions for one post? lol

Should I be breaking down each question into different posts to make it easier to focus on one thing at a time? I just assumed since it was the same script to keep it all in one post.

Thanks.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0