Removed esoxml.lua and renamed to esoxmlkeywordlist, updated xmlapicreator

Solvaring [07-08-17 - 18:12]
Removed esoxml.lua and renamed to esoxmlkeywordlist, updated xmlapicreator
Filename
ESOXML.lua
ESOXMLKeywordList.lua
xmlapicreator2.lua
diff --git a/ESOXML.lua b/ESOXML.lua
deleted file mode 100644
index e69de29..0000000
diff --git a/ESOXMLKeywordList.lua b/ESOXMLKeywordList.lua
new file mode 100644
index 0000000..964356f
--- /dev/null
+++ b/ESOXMLKeywordList.lua
@@ -0,0 +1 @@
+ addressMode allowBringToTop alpha anchorIndex autoAdjustTextureCoords barAlignment blendMode cellsHigh cellsWide centerColor clampedToScreen clickSound color delay deltaX deltaXFromEnd deltaY deltaYFromEnd deltaZ deltaZFromEnd disabled disabledColor disabledPressed disabledPressedColor dragFromThumb drawLastEntryIfOutOfRoom duration edgeColor editEnabled enableFadeOut endAlpha endCapWidth endColor endHeight endPitch endRoll endRotation endScale endWidth endX endY endYaw endZ excludeFromResizeToFitExtents fadeOutGainColor fadeOutLossColor fadeOutTextureFile fillColor font framerate headerRowSpacing headerVerticalOffset hidden horizontalAlignment id inheritAlpha inheritScale inherits integralWrapping keyboardEnabled layer leadingEdgeTexture level lineSpacing linkEnabled loopCount maxHistoryLines maxInputCharacters maxLineCount mirrorAlongX mirrorAlongY modifyTextType mouseEnabled mouseOver mouseOverBlendMode mouseOverColor movable multiLine newLineEnabled newLineIndent normal normalColor orientation pinFont pixelRoundingEnabled playbackType pressed pressedColor pressedMouseOver radialCooldownClockwise radialCooldownOriginAngle resizeHandleSize resizeToFitDescendents resizeToFitFile scale selectionColor shape splitLongMessages startAlpha startColor startHeight startPitch startRoll startRotation startScale startWidth startX startY startYaw startZ step styleColor text textType textureCoordsRotation textureFile textureFileReleaseOption thickness tier topmost verticalAlignment wrapMode Anchor AnchorFill AnchorToBaseline AnimationBase AnimationTimeline Animations Backdrop BackgroundBottom BackgroundMiddle BackgroundTop Browser Button ButtonState Callback Callbacks Center ClampedToScreenInsets ClearAnchors ColorAnimation ColorSelect Compass CompassPinType Control Controls Cooldown CustomAnimation DebugText DimensionConstraints Dimensions EasingFunction Edge EditBox FadeGradient Font FontColors GuiXml HitInsets Insets Label LeadingEdge LeadingEdgeTextureCoords Limits Line LineFade LocalDimensions3D MapDisplay MapGutter MapPinType MouseButton NormalOffset OnAddGameData OnBackspace OnChar OnCleared OnClicked OnColorSelected OnDownArrow OnDragStart OnDurationChanged OnEffectivelyHidden OnEffectivelyShown OnEnabledStateChanged OnEnter OnEscape OnFocusGained OnFocusLost OnHide OnIMEBeginComposition OnIMEEndComposition OnInitialized OnInsertAnimationTimelineCallback OnKeyDown OnKeyUp OnLinkClicked OnLinkMouseUp OnLoadFinished OnLoadStart OnMinMaxValueChanged OnMouseDoubleClick OnMouseDown OnMouseEnter OnMouseExit OnMouseUp OnMouseWheel OnMoveStart OnMoveStop OnPageDown OnPageUp OnPlay OnPlay OnReceiveDrag OnRequestClose OnResizeStart OnResizeStop OnResizedToFit OnScrollExtentsChanged OnScrollOffsetChanged OnSetAnimationEaseFunction OnSetAnimationEventHandler OnSetAnimationTimelineEventHandler OnSetControlEventHandler OnSetUpdateFunction OnShow OnSliderReleased OnSpace OnStop OnStop OnTab OnTextChanged OnTextureLoaded OnUpArrow OnUpdate OnUserAreaCreated OnValueChanged OnVisibleRadiusChanged PressedOffset RadialCooldownGradient ResizeToFitPadding Rotate3DAnimation ScaleAnimation Scroll ScrollingOverlay SizeAnimation Slider StatusBar String Surface TextBuffer Texture TextureAnimation TextureComposite TextureCoords TextureRotateAnimation Textures ThumbTexture Tooltip TopLevelControl Translate3DAnimation TranslateAnimation UpdateFunction sentinel
\ No newline at end of file
diff --git a/xmlapicreator2.lua b/xmlapicreator2.lua
index 7063022..8138e7a 100644
--- a/xmlapicreator2.lua
+++ b/xmlapicreator2.lua
@@ -1,13 +1,26 @@
 local esouixml = io.open('esouixml.txt', 'r')
 local xmlstring = esouixml:read("*a")
-local working2 = io.open("ESOXML.lua", "w+")
+local working2 = io.open("ESOXMLKeywordList.lua", "w+")

 esouixml:seek('set')

 local keywordstring =""

-for keyword in xmlstring:gmatch("%b%*%*") do
-    keywordstring = keywordstring .. keyword
+for line in esouixml:lines() do
+    if line:find("h5. AlphaAnimation",1,true) then
+        break
+    end
+    local keyword = line:match("*%s([%a]+)%s*")
+    if keyword then
+        keywordstring = keywordstring .. " " .. keyword
+    end
+end
+
+for line in esouixml:lines() do
+    local keyword2 = line:match("h5.%s([%a%d]+)")
+    if keyword2 then
+        keywordstring = keywordstring .. " " .. keyword2
+    end
 end

 working2:write(keywordstring)