|
Post by Mongo the Destroyer on Jun 17, 2023 4:43:02 GMT -5
So am I to presume that if I click on the blue section headings it reorganizes the list based on that? Like if I click "tech" then Curt Hennig goes to the top? Indeed my friend.
And I'm working on filters too at the same time. I would like to read the user input and do something like on tech field >70 and it will show everyone above 70 on that attribute. Just found and edited a cool extension to work with array data, because I have so many merges, it's easier than using activerecord. Or dynamic active records.Good, because that was my next question, lol. I use the filter very frequently on EWR
|
|
|
Post by ViciousLothario on Jun 17, 2023 4:56:40 GMT -5
Indeed my friend.
And I'm working on filters too at the same time. I would like to read the user input and do something like on tech field >70 and it will show everyone above 70 on that attribute. Just found and edited a cool extension to work with array data, because I have so many merges, it's easier than using activerecord. Or dynamic active records. Good, because that was my next question, lol. I use the filter very frequently on EWR Plus yesterday I was battling with the system, because of static names, resolved it with a prefix, and a new plugin. So now we're gucci developing.
|
|
|
Post by ViciousLothario on Jun 17, 2023 16:18:21 GMT -5
Entry #35: And one of the happiest ones
Today I spent major part of the day working on the filters, and yii2 likes to escape certain characters, mostly because of security vulnerabilities they present, but it's not the case in this part and there should be a option to not escape this characters like >, >=... Etc...
All of this comes from my morning talk with Mongo. I had to redo the entire view, because sorting and filtering was breaking... I needed to build the table from the contracts table and not from the workers table despite that I want to show workers that are contracted... Well a contract is the junction between a fed and a worker, so it makes total sense now, to be the central part of it.
Managed to get everything to sort correctly, even the string like Major Star, Star etc, a lot of code and headache into there, a lot of research as well, to build those fields and custom ordering.
Now I wanted to give the ability to users to filter for skills greater than, greater than or equal, equal, lesser than or equal, lesser than. So instead of having a modal or some stupid window in the way...
The user now just needs to type '>'50 with the brackets... or the user can do it with ">"50. And that's because if the user inputs a direct >... Yii escapes that character, php escapes that character in the url that builds the query params. Weird isn't it?
Here's a working example, just 8 workers show up for WWF, which is quite usual at this point, 1992. BUT IT WORKS! YOU DON'T NEED EXTRA CLICKS, just need to type. I will also put a reminder of that at the top of the grid, and that's it. OH and all the fields can be filtered and sorted unlike it was before. A lot of work and research went here. But this part is completed. Now I need to work on what happens when you click on the plus sign... ahahah. Oh and fix that speed being a decimal/float number and convert it to a int.
See ya all tomorrow.
|
|
|
Post by Cross Recoba on Jun 18, 2023 4:50:47 GMT -5
All of this comes from my morning talk with Mongo. Found a HUGE bug
|
|
|
Post by ViciousLothario on Jun 18, 2023 7:08:53 GMT -5
All of this comes from my morning talk with Mongo. Found a HUGE bug Indeed he did, it's already a very researched one. In Yii1 you could implement comparison quite easily, on Yii2 people opt for doing a filter outside the grid. And I opt to filter like this. Yes it requires a ' or a " but it's easier than an external filter.
|
|
|
Post by ViciousLothario on Jun 18, 2023 7:11:24 GMT -5
Entry #36: Wrestler details, Gimmick Change, Alignment Change
I've been working on wrestler details, in other words on what you see when you click expand row... And did something like this for the gimmick change... Apart from a single bug where I don't make an initial request to populate the information, which I can do in a bit. Here it is.
And if you click close or x button it hides the modal completely. so it's quite easy to change gimmick or alignment of your wrestlers.
|
|
|
Post by Mongo the Destroyer on Jun 18, 2023 7:29:11 GMT -5
What's the "dominant" drop down do?
|
|
|
Post by ViciousLothario on Jun 18, 2023 7:35:01 GMT -5
What's the "dominant" drop down do? It's to sort the gimmick types. I won't list 745 gimmicks, in a single dropdown. So it's a extra filter...
'Standard'; 'Dominant'; 'Comedy'; 'Swagger'; 'Gimmicky/Cartoonish'; 'Bad Ass'; 'Legitimate'; 'Weasely/Underdog'; 'Realistic'; 'Mysterious/Occult'; 'Offbeat/Unstable'; 'All';
But the idea is simple... I want to give this guy a comedy gimmick... Or a Legitimate gimmick, etc... Then it shows you the gimmicks available in that category.
Another thing I need to say is that gimmicks are scenario specific now, so different scenarios can have different gimmicks.
|
|
|
Post by ViciousLothario on Jun 18, 2023 7:42:00 GMT -5
Oh, and sorry for the double post, but different scenarios might have different gimmicks, because of the mods itselfs and the gimmick ID's being different, so that's something I looked at and adressed it right away with that decision.
|
|
|
Post by ViciousLothario on Jun 21, 2023 1:56:46 GMT -5
Entry #36: Worker details done, now onto tabs for other listings
That's it with worker details, underneath I will add some tabs with certain content, like match history, titles, etc. But not for now, time to move to another screen.
|
|
|
Post by ViciousLothario on Jun 21, 2023 3:44:39 GMT -5
Entry #37: And we have Tag Teams too
Still having some issues with the form to create a new team, but is a totally sortable column. There was a lot of database work going into this, but it was fine. I did it!! Oh, yeah and don't ask me why there are duplicates, these are going to be removed on conversion to spare me some issues. I forgot to add the company id to the tag team table... So basically you can have the same team on different companies but with different names.
But hey, that's 1 hour of work.
|
|
|
Post by Mongo the Destroyer on Jun 21, 2023 6:15:45 GMT -5
Ooh, tag teams!
|
|
|
Post by ViciousLothario on Jun 22, 2023 10:47:08 GMT -5
Entry #38: Yes I just created a random team
On a side note I just noticed I wrote over 4000 lines of code for the game in the past week. I'm a bit crazy I think. Oh and we can activate teams, update teams and delete teams. Easy boyz... And if I activate a team post the game start date where experience equals 0, it will change the team date formed.
|
|
|
Post by ViciousLothario on Jun 22, 2023 13:22:04 GMT -5
Entry #39: And Guess What we have stables too!Yes it's not the original AJPW stables but you don't even imagine the amount of mental work went into this one. You can update members it's a simple dropdown where you multi select... or delete to remove. Easy! This is going fast today. Let's have a look at the project totals
|
|
|
Post by ViciousLothario on Jun 24, 2023 10:21:20 GMT -5
Entry #40: Titles
We now have titles being displayed here's the preview.
When we expand...
And title history too, you can scroll the table.
Now onto the update, delete and create new title actions. Hope this sneak peeks are watering the mouth of those who are interested.
|
|