[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > SC2 Resources > Filtered Listing


Closed Thread
 
Thread Tools
The Hive Workshop SC2 Resources:

resource_images/1/sc2res_65/FrameElements.jpg
resource_images/1/sc2res_65/ConstantsAndErrorReporting.jpg
resource_images/1/sc2res_65/AttributeAutoComplete.jpg
resource_images/1/sc2res_65/FrameTypes.jpg
resource_images/1/sc2res_65/AttributeIntellisense.jpg
resource_images/1/sc2res_65/MainIcon.jpg
SC2 Resource Details
Submitted By: Kalekin
Submitted: 12:42, 26th Nov 2011
Updated: 12:42, 26th Nov 2011
Filename: SC2Layout_XML_Schema.zip
Filesize: 5.65 KB
Downloads: 89
Category: Other
SC2 Resource Type: User Interface, Other
Keywords: Starcraft2 Layout SC2Layout UI GUI User Interface Schema XML

This SC2 resource has not been approved in the resource section and is not guaranteed to be working.


Rating by users: 0.00 (0 votes)

(Hover and click)


NOTE -- If you have any problems with validation make sure you are using the latest file first before reporting any error --


This is a schema file designed to simplify the creation and modification of SC2Layout files for Starcraft 2. It unlocks numerous intellisense features in your XML editor of including, but not limited to:

Enumerations for the "type" attribute belonging to the Frame element
All known child elements for Frames
Intellisense for element attributes
Enumerations for a number of known element attributes
Error reporting



Using this schema in Visual Studio:
---------------------------------

- Download the SC2Layout.txt file

- Rename SC2Layout.txt to SC2Layout.xsd

- Copy the file to C:\<Visual Studio install path>\Xml\Schemas (eg. C:\Program Files (x86)\Microsoft Visual Studio 10.0\Xml\Schemas)

- Run Visual Studio

- Create a new XML file by going to the menu File > New > File or using the CTRL+N shortcut.

- You should have a new file containing <?xml version="1.0" encoding="utf-8"?>

- Open and close a root node called Desc.

- To the root node add the attribute xmlns="http://www.hiveworkshop.com/SC2Layout.xsd"



That's it. You should end up with a file that looks like this:

<?xml version="1.0" encoding="utf-8"?>
<Desc xmlns="http://www.hiveworkshop.com/SC2Layout.xsd">
</Desc>


This schema validates 99.99% of the time against all original Stacraft 2 SC2Layout files. The only invalid cases are due to 1 or 2 case inconsistencies that I consider errors on the part of the original files.

Even though this validates correctly it does not mean it is 100% complete. There are most likely (I have found one) a few Frame child elements which the original files do not make use of and whos exsistance I am unaware of. If you discover any additional elements that I do have listed, please send me a private message and I will update the schema.

In order spit out errors during editing when invalid values are used a lot of the element attributes have specific types they are validated against. However, for a lot of the less commonly used attributes, the schema allows for any value, even though the SC2 client may be looking for specific types. If you run into any of these cases, please send me a private message with an accurate description of the attribute's valid values and I will update the schema.


Click here to download SC2Layout_XML_Schema.zip

Contents
N/A SC2Layout.txt
45 KB
26 downloads
Old 11-25-2011, 05:56 AM   #2 (permalink)
Registered User Statharas
I prefer Nagisa anyway!
 
Statharas's Avatar
 
Join Date: Jul 2008
Posts: 1,919
Statharas is just really nice (293)Statharas is just really nice (293)Statharas is just really nice (293)Statharas is just really nice (293)Statharas is just really nice (293)
Finally. Been looking everywhere for this.
I believe it's possible for you to make a picture of all the objects with their names.
__________________


Statharas is offline  
Old 11-26-2011, 12:39 PM   #3 (permalink)
Registered User Kalekin
User
 
Join Date: May 2010
Posts: 28
Kalekin has little to show at this moment (4)
By objects I assume a snapshot of all the valid child elements a Frame can have? If so, any suggestion as to how to get that?

PS. I noticed I missed out a few of the original SC2Layout files when uploading the first instance of this schema and have just updated it with some extra Frame types/elements. If you have any problems with validation make sure you are using the latest file first before reporting any error.
Kalekin is offline  
Old 12-10-2011, 01:05 AM   #4 (permalink)
Registered User Xian
1000 Posts :P
 
Xian's Avatar
 
Join Date: Mar 2011
Posts: 1,078
Xian is just really nice (354)Xian is just really nice (354)Xian is just really nice (354)
So basically its a coding tool for Starcraft?
Xian is offline  
Old 12-19-2011, 03:08 PM   #5 (permalink)
Forum Moderator -Kobas-
★ SotP Project Leader ★
 
-Kobas-'s Avatar
Resource Moderator
 
Join Date: Jan 2010
Posts: 5,869
-Kobas- has a reputation beyond repute (2079)-Kobas- has a reputation beyond repute (2079)-Kobas- has a reputation beyond repute (2079)-Kobas- has a reputation beyond repute (2079)-Kobas- has a reputation beyond repute (2079)-Kobas- has a reputation beyond repute (2079)
Hero Contest #6 - Winner: Alora, the Priestess of Moonlight was found to be the most succesful defender against the Armies of the Burning Legion! A hero by -Kobas-. Hero Contest #5 - Winner: Stormbringer was -Kobas-'s entry, who incorporated lightnings as the power of future weaponry. Despite the instability of lightnings, this entry was stable enough to be approved by judges and public. A hero by -Kobas-. Mini-Game Mapping Contest #4: -Kobas- has won the fourth edition of The Hive Workshop's Mini-Game Mapping Contest with his entry: "Hunted". Check out the Arena if you want to participate on competitions as well! 
Kalekin I see that you use Visual Studio, can you tell me are you good with Visual Basic language?
__________________

New version is out!
Shadows of the Past v0.9.3.0
Monday, March 25 2013 22:20
Check it out -> ★ Shadows of the Past ★
------------------------------------------------------
We got our Writer, please, welcome Noxx-
-Kobas- is online now  
Old 12-24-2011, 02:39 PM   #6 (permalink)
Registered User Kalekin
User
 
Join Date: May 2010
Posts: 28
Kalekin has little to show at this moment (4)
Nope, the majority of my experience is in C#.
Kalekin is offline  
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 07:55 PM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle