Skip to content

Commit

Permalink
2023-05-29 🐛 #31 fix for Shapes_Init
Browse files Browse the repository at this point in the history
  • Loading branch information
Nonki Takahashi committed May 29, 2023
1 parent cb6df69 commit 5be9a3c
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions Shapes.sb
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
' Shapes
' Version 2.6.0
' Copyright © 2012-2020 Nonki Takahashi. The MIT License.
' Last update 2020-04-19
' Version 2.6.1
' Copyright © 2012-2023 Nonki Takahashi. The MIT License.
' Last update 2023-05-29
' Repository https://github.com/nonkit/Shapes
'
' TODO:
' [✓] #30 Change xlink:href to href
' [✓] #29 Support to get Shapes_Init_xxx
' [✓] #31 Support to get Shapes_Init
' [ ] #25 Support sprite array specification
' [ ] #11 Support transparent brush color
' [ ] #7 Support text tag (element)
Expand All @@ -15,7 +14,7 @@
' [ ] #2 Bug fix for Silverlight: Rotated triangles move after click
' [ ] #1 Bug fix for Silverlight: Lines come different place
'
title = "Shapes 2.6.0"
title = "Shapes 2.6.1"
pgmname = "Shapes.sb"
GraphicsWindow.Title = "Untitled - " + title
debug = "False"
Expand Down Expand Up @@ -3134,12 +3133,14 @@ Sub SB_AppendSub
While Text.GetSubText(_buf, ptr, 1) = " "
ptr = ptr + 1
EndWhile
If _Name Then
If Text.GetSubText(_buf, ptr, len) = subname And (Text.GetSubText(_buf, ptr + len, 1) = "_") Then
notFound = "False"
If Text.GetSubText(_buf, ptr, len) = subname Then
_c = Text.GetSubText(_buf, ptr + len, 1)
If _Name Then
_allowed = "_' " + CR + LF
Else
_allowed = "' " + CR + LF
EndIf
Else
If Text.GetSubText(_buf, ptr, len) = subname And Not[Text.IsSubText(TCHAR, Text.GetSubText(_buf, ptr + len, 1))] Then
If Text.IsSubText(_allowed, _c) Then
notFound = "False"
EndIf
EndIf
Expand Down

0 comments on commit 5be9a3c

Please sign in to comment.